Announcement Announcement Module
Collapse
No announcement yet.
Handle submission without get validator error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Handle submission without get validator error

    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

  • #2
    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

    Comment


    • #3
      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.

      Comment

      Working...
      X