View Full Version : SimpleFormController invoked twice on request.
Jeff Johnston
Mar 16th, 2006, 08:45 PM
My SimpleFormController is actually being invoked twice. Both when I first load the form, and then on form validation. I am putting my breakpoint in the formBackingObject() method and it runs through that method twice each time. Does anyone have any ideas? Strange it would do it exactly twice each time.
Jeff Johnston
Mar 17th, 2006, 09:42 AM
Ok, I found the problem... I was calling a method incorrectly.
protected Map referenceData(HttpServletRequest request)
throws Exception {
Map referenceData = new HashMap();
PatientDetailsCommand command = (PatientDetailsCommand) getCommand(request);
The fix was to call the right method :). I spent hours burned by this:
protected Map referenceData(HttpServletRequest request, Object obj, Errors errors)
throws Exception {
Map referenceData = new HashMap();
PatientDetailsCommand command = (PatientDetailsCommand) obj;
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.