PDA

View Full Version : not called: isFormChangeRequest & onSubmit


ChuckAtEmbarq
Jul 16th, 2007, 07:22 PM
I've got a SimpleFormController. The corresponding JSP has two submit buttons. I have an isFormChangeRequest method that returns true when one button is pushed and false when the other is pushed. This had been working perfectly. Today, what a day.... Now the isFormChangeRequest method NEVER gets called. Instead, my referenceData method gets called no matter which button is pushed and the formView gets displayed again. Control never reaches my onSubmit method and I never get to the successView.

Can somebody suggest what the problem might be or at least a way to trace the flow to see what's going on? Any help would be very, very appreciated.

Jörg Heinicke
Jul 17th, 2007, 12:53 AM
There is probably a binding error which leads to handleInvalidSubmit() instead of normal handleSubmit() methods. That would explain the call to referenceData() since this is only shown with the form view by default.

Jörg

ChuckAtEmbarq
Jul 17th, 2007, 07:40 AM
Yes, that was the problem precisely. Thanks