Results 1 to 3 of 3

Thread: Handle submission without get validator error

  1. #1

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Amsterdam, Netherlands
    Posts
    450

    Default

    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

  3. #3

    Default

    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.

Similar Threads

  1. Duplicate Form Submission Handling
    By franksegust in forum Web
    Replies: 6
    Last Post: May 5th, 2006, 11:24 AM
  2. Replies: 0
    Last Post: Aug 31st, 2005, 09:40 AM
  3. Replies: 5
    Last Post: Aug 5th, 2005, 06:29 AM
  4. Replies: 0
    Last Post: Jul 1st, 2005, 05:53 AM
  5. How to get a handle to the Bean factory?
    By javamq in forum Container
    Replies: 1
    Last Post: Oct 5th, 2004, 02:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •