[jboss-user] [JBoss jBPM] - gravel and j4j tags in datatable
gnagy
do-not-reply at jboss.com
Tue Jun 24 04:39:28 EDT 2008
Hi,
I tried borrowing code from the jbpm console for listing tasks and making transitions. I iterate over #{taskInstanceList} in a datatable (tried both h:datatable and rich:datatable), but the gravel and j4j tags don't pick up the iteration variable.
<h:dataTable var="taskInstance" value="#{taskInstanceList}">
<h:column>
<f:facet name="header" >
<h:outputText value="Deal info"/>
</f:facet>
<h:outputText value="#{taskInstance.variables['dealTask']}"/>
</h:column>
<h:column>
<f:facet name="header" >
<h:outputText value="State"/>
</f:facet>
<h:outputText value="#{taskInstance.task.parent.name}"/>
</h:column>
<h:column>
<f:facet name="header" >
<h:outputText value="Actions"/>
</f:facet>
<ga:responseActions>
<gd:sort source="#{taskInstance.availableTransitions}" target="#{transitions}" entryVar="e" argument="#{e.name}"/>
</ga:responseActions>
< ul>
<gd:repeat value="#{transitions}" var="transition">
< li>
<h:commandLink>
<j4j:loadTask id="#{taskInstance.id}" target="#{j4jtask}"/>
<j4j:completeTask task="#{j4jtask}" transition="#{transition.name}"/>
#{transition.name}
<n:nav outcome="success" redirect="true" storeMessages="true"/>
<n:nav outcome="error" redirect="true" storeMessages="true"/>
</h:commandLink>
< /li>
</gd:repeat>
< /ul>
</h:column>
</h:dataTable>
is rendered as:
Deal info State Actions
info1 Accepting Deal
info2 Accepting Deal
info3 Accepting Deal
i.e. the Actions column is empty.
Any ideas why gravel and j4j don't pick up #{transitions}? Note, it semi-works with ui:repeat, but then i have no chance to sort the set of transitions.
Also, is it ok to post further gravel questions in the jbpm forum? Or do they belong elsewhere?
Thanks,
Greg
b2international.com
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160131#4160131
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160131
More information about the jboss-user
mailing list