Hi,
I need to handle a submission, modify element of the model and return to the view but without the errors find by my validator appears, is it possible ?
Thanks,
Fabien
Hi,
I need to handle a submission, modify element of the model and return to the view but without the errors find by my validator appears, is it possible ?
Thanks,
Fabien
Do you mean going back to the form view without any errors in the Errors object or do you just want to hide any error messages in the view.
For the former, just override any of the onSubmit() callbacks and return showForm() instead of new ModelAndView(getSuccessView()).
Alef
Hi Alef,
In fact, the validator create errors messages : that ok for my save method but i have another action which must fill the form with specific information. This action doesn't care about validation of old fields value.
Unfortunaly, the validator doesn't know my call method value.
Fabien.