Dec 15th, 2010, 06:56 AM
How to submit & bind list of ALL values with form:select?
First the screenshot of what I want to achieve:
After form submission, I want to submit and bind to the List, list of chosen values, in this example Pink, Red and Yellow. All available items from the left list will be fetched from the service method, so I want to submit all items from the right list to the Controller, not just selected ones.
I'm using the latest version of Spring MVC, so what would be the right way to accomplish this?
Last edited by dule; Dec 15th, 2010 at 07:06 AM.
Dec 16th, 2010, 05:59 AM
I've solve it by adding external JS function that selects all items from the list on the left, just before form submit.
A List of objects (specified within a path attribut of form:select element) is properly filled up with all items from the list on the left.