aspose file tools
The moose likes Other Application Frameworks and the fly likes Spring MVC onSubmit not called Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Reply Bookmark "Spring MVC onSubmit not called" Watch "Spring MVC onSubmit not called" New topic
Author

Spring MVC onSubmit not called

Jehan Jaleel
Ranch Hand

Joined: Apr 30, 2002
Posts: 176
Hi all,
The following is a really wierd problem. I am using Spring MVC. I have a form with a bunch of checkboxes like follows....



What happens is that when one checkbox is checked then it works fine. But if more than one is checked then for some reason the onSubmit method of my Controller which extends SimpleFormController is not called.

The form submits but it does not call the onSubmit method.

Any idea why this could be happening?
[ December 09, 2008: Message edited by: Jehan Jaleel ]
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

What's your command object look like? Does it have method like "setDeleteFlag(String[] deleteFlag)"?

Check the documentation on the Spring Form Tag Library they have a form:checkbox tag that lets you map the checkbox to specific fields of your command object if you need to.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Jehan Jaleel
Ranch Hand

Joined: Apr 30, 2002
Posts: 176
Thanks Nate, this was the problem.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Spring MVC onSubmit not called
 
Similar Threads
Check All button for all spring check boxes array
Property binding error
Retrieve values from JSP
Check boxes
Dynamic form - multiple form:input tags