In the SimpleFormController, the onSubmit takes a BindException as a parameter. How do I add a new error to that object? For example, I have a service that validates a username and password against a value, and if they do not match I want to display an error back to the user. Is the following the correct way to do this or is there a more elegant way to do this?
Thanks for the help Brian
posted 15 years ago
I didn't realize until this morning that BindException was actually a subclass of Errors so I can use the same way of adding errors as I am doing in my Validator. Brian