Results 1 to 3 of 3

Thread: isFormChangeRequest for wizard forms

  1. #1
    Join Date
    Aug 2004
    Location
    Wellington, New Zealand
    Posts
    31

    Default isFormChangeRequest for wizard forms

    I have a wizard-based form that I would like to be able to submit a "refresh" of the current page to re-load reference data but not perform any validation. This would be similar to the SimpleFormController's isFormChangeRequest() method. I can't see a good way to accomplish this in the AbstractWizardFormController class, and was wondering if there was anything I might be missing before I start to come up with a solution.
    -- m@

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney
    Posts
    503

    Default

    I'm interested in this as well.

    It would be useful if AbstractFormController (parent class for both Simple + AbstractWizard form controllers) had the following template methods:
    Code:
    boolean suppressValidation(HttpServletRequest)
    boolean suppressBind(HttpServletRequest)
    or maybe only one method is needed? Does suppressing validation mean you probably also want to suppressBind, or vice-versa...

    Spring Team, any thoughts on how to do this?

  3. #3
    Join Date
    Aug 2004
    Location
    Wellington, New Zealand
    Posts
    31

    Default

    For me at least suppressing validation does not mean I want to suppress binding. I do not want to lose any changes a user might have made to the form. My scenario is something like this:

    1) a form has a drop-down menu with "things" in it, and the last "thing" in the list says "Add a new 'thing'"
    2) the user selects the "Add a new 'thing' option, which causes some JavaScript code to open a new window, and the user is guided through a different form that in effect adds a new "thing" to the back end
    3) when the user has added the new "thing" to the back end, the pop-up window closes, and the original form page "refreshes" so the drop-down menu now displays the new "thing" in the list

    So in this case, if the user perhaps made some changes to the original form before causing that form to "refresh" I do want data binding to occur so their changes are not lost.
    -- m@

Similar Threads

  1. Struts forms and validation with webflow
    By danielm in forum Web Flow
    Replies: 13
    Last Post: Nov 27th, 2006, 11:57 PM
  2. Replies: 1
    Last Post: Feb 25th, 2005, 07:12 AM
  3. Forms and nested properties
    By DaGGeRRz in forum Swing
    Replies: 0
    Last Post: Feb 23rd, 2005, 08:59 AM
  4. Replies: 0
    Last Post: Dec 25th, 2004, 09:43 AM
  5. Replies: 3
    Last Post: Dec 16th, 2004, 06:52 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
  •