Alejandro Guizar [
http://community.jboss.org/people/alex.guizar%40jboss.com] replied to
the discussion
"Defining a list in a task form, but How?"
To view the discussion, visit:
http://community.jboss.org/message/543786#543786
--------------------------------------------------------------
This is not really a jBPM question as the engine is able to persist and return a list of
strings as variable value. Anyhow, if you are using JSF, you could take a look at what the
web console does.
In particular, the web console comes has two supporting tag libraries, gravel and
jbpm4jsf. These tag libraries provide a number of tags which you might find useful.
<html
xmlns:h="http://java.sun.com/jsf/html"
xmlns:gd="http://gravel.jboss.org/jsf/1.0/data"
xmlns:j4j="http://jbpm.org/jbpm4jsf/core">
...
<j4j:loadProcessInstance id="#{id}" target="#{pi}"/>
<j4j:getVariableMap target="#{vars}" value="#{pi}"/>
<gd:repeat value="#{vars['applicants']}"
var="applicant">
<h:outputText value="#{applicant}"/>
</gd:repeat>
</html>
Both the
https://repository.jboss.org/nexus/content/repositories/releases/org/jbpm...
jbpm4jsf and
https://repository.jboss.org/nexus/content/repositories/releases/org/jbos...
gravel jars are available from the jboss maven repository.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/543786#543786]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]