Results 1 to 2 of 2

Thread: How to submit & bind list of values?

  1. #1
    Join Date
    Nov 2010
    Posts
    15

    Default 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.

  2. #2
    Join Date
    Nov 2010
    Posts
    15

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •