Hello,
I am trying to figure out how the DVD Store example sets and retrieves variables from
tasks.
The file web/admin/admin.xhtml:
| <h:dataTable rendered="#{not empty pooledTaskInstanceList}"
| var="task"
| styleClass="dvdtable"
| headerClass="dvdtablehead"
| rowClasses="dvdtableodd,dvdtableeven"
| columnClasses="dvdtablecol">
| <h:column>
| <f:facet name="header">Order Id</f:facet>
| #{task.variables['orderId']}
| </h:column>
| <h:column>
| <f:facet name="header">Task</f:facet>
| <h:outputText value="#{task.description}" />
| </h:column>
| <h:column>
| <f:facet name="header">Order
Amount</f:facet>
| <h:outputText
value="#{task.variables['amount']}">
| <f:convertNumber type="currency"
currencySymbol="$" />
| </h:outputText>
| </h:column>
| <h:column>
| <f:facet name="header">Customer</f:facet>
| <h:outputText
value="#{task.variables['customer']}" />
| </h:column>
| <h:column>
| <s:button action="#{pooledTask.assignToCurrentActor}"
taskInstance="#{task}"
| value="Assign"/>
| </h:column>
| </h:dataTable>
|
How does task.variables['customer'] get set originally?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042088#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...