Feb 24th, 2009, 07:00 AM
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 at 07:58 AM.