Results 1 to 4 of 4

Thread: Question on SimpleFormController

Hybrid View

  1. #1

    Default Question on SimpleFormController

    Hi,

    I've this one particular formController I can never figure out why it doesn't work. When I click on the submit button, it never calls to the OnSubmit function, instead the FormBackingObject gets called.
    When I traced through it, the validator gets called then it goes right to the FormBackingObject function.

    I'm doing this the same way as my other formController. What am I missing on this one? What are the requirement for a binding a form to SimpleFormController?

    Thank you

  2. #2
    Join Date
    Aug 2004
    Location
    Amsterdam, Netherlands
    Posts
    450

    Default

    Submitting only happens when the method of the form is set to POST. Maybe that's the problem? If not, can you check with your other form controller to see what methods you have overridden?

    Alef

  3. #3

    Default

    The form method is set to POST

    I basically used the existing working formController by renaming it and changing the codes inside the function. I can't think of anything tha I'm doing differently. The only thing I could think of that is different is on my jsp form, I have a couple of extra hidden fields. Do I need to have matching form fields with the CommandClass Object properties? I didn't think that was the requirement.

  4. #4
    Join Date
    Aug 2004
    Location
    Amsterdam, Netherlands
    Posts
    450

    Default

    No, you don't have to have matching form field perse... But probably the formcontroller is redirecting you to the form view again because it thinks there are errors (probably because binding failed).

    Could you try to override showForm(HttpServletRequest, HttpServletResponse, Errors) and see if there are any errors available?

Similar Threads

  1. SimpleFormController not do onSubmit
    By heleno_alves in forum Web
    Replies: 2
    Last Post: Oct 18th, 2005, 07:22 AM
  2. Forgot password (e.g. secret question) using Acegi
    By lowerymb77 in forum Security
    Replies: 1
    Last Post: Oct 16th, 2005, 10:46 PM
  3. Replies: 3
    Last Post: Jul 8th, 2005, 09:00 AM
  4. SimpleFormController question
    By BenPoweski in forum Web
    Replies: 1
    Last Post: May 20th, 2005, 04:18 AM
  5. Servlet & portlet packages (SimpleFormController)
    By mpetrashev in forum Architecture
    Replies: 0
    Last Post: Dec 2nd, 2004, 10:11 AM

Posting Permissions

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