Announcement Announcement Module
No announcement yet.
Wrong request flow with SimpleFormController Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wrong request flow with SimpleFormController

    A controller of mine has a strange behaviour. After the execution of showForm the web page is rendered, as it should. When the form submits first the formBackingObject method is called, but then the showForm is called again, and not the submit method.

    Why is not the submit method called instead?

    The first request is called by new ModelAndView(new RedirectView("MyController")) from my FrontController and the second is called by form action="contextPath/customer/MyController" and method="post".

    Edit: I found out that it called showForm again because it had errors in the form. I should have started debugging before posting this and not after....
    Last edited by DJViking; Feb 24th, 2009, 08:58 AM.