0 Replies Latest reply on Sep 12, 2012 9:13 AM by martinmueller

    Form with multi-select yields single String instead of Collection

    martinmueller

      Hey,

       

      when a user starts a process instance in the jBPM Console I'd like to display a form with a select input allowing multiple selection.

      I've got the form displayed properly with the multi-select box. However, when submitting the form the corresponding process variable only gets filled with a String containing the first selected value. Any other selected value is discarded, and I would have expected some Collection type instead of a String.

      The form is a basic HTML form inside the <process_id>.ftl file:

       

      <form action="complete" method="POST" enctype="multipart/form-data">
        <select name="list" multiple="multiple">
          <option value="value1">Option 1</option>
          <option value="value2">Option 2</option>
          <option value="value3">Option 3</option>
        </select>
      </form>
      

       

      If I select "Option 2" and "Option 3" in this example and then start the process the list variable is set to a String "value2".

      How do I make it return a Collection with all selected values instead?

       

      Thanks in advance,

      Martin