2 Replies Latest reply on Sep 5, 2007 5:12 PM by Lilian Chamorro

    Lists or Arrays in jbpm-console 3.2

    Patrick Ficher Newbie

      I am trying to use a jsf component in jbpm's 3.2 webapp which requires an Array or a List as output variable.

      <h:selectManyCheckbox id="cars" value="#{taskBean.variables['testvariable']}">
       <f:selectItem itemLabel="test1" itemValue="test1"/>
       <f:selectItem itemLabel="test2" itemValue="test2"/>
      </h:selectManyCheckbox>
      

      If I define testvariable as an ArrayList
      context.setVariable("testvariable", new ArrayList(), token);

      it's possible to access the taskform page. But trying to save it results in an error (java.lang.IllegalArgumentException: ValueBinding for UISelectMany must be of type List or Array).

      Can anyone give me a hint how to bring the webapp to accept an ArrayList from the jsf component?

      Thanks in advance,
      Patrick