[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


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}">
        <f:facet name="header" >
            <h:outputText value="Deal info"/>
        <h:outputText value="#{taskInstance.variables['dealTask']}"/>
        <f:facet name="header" >
            <h:outputText value="State"/>
        <h:outputText value="#{taskInstance.task.parent.name}"/>
        <f:facet name="header" >
            <h:outputText value="Actions"/>
            <gd:sort source="#{taskInstance.availableTransitions}" target="#{transitions}" entryVar="e" argument="#{e.name}"/>
        < ul>
        <gd:repeat value="#{transitions}" var="transition">
            < li>
                    <j4j:loadTask id="#{taskInstance.id}" target="#{j4jtask}"/>
                    <j4j:completeTask task="#{j4jtask}" transition="#{transition.name}"/>
                    <n:nav outcome="success" redirect="true" storeMessages="true"/>
                    <n:nav outcome="error" redirect="true" storeMessages="true"/>
            < /li>
        < /ul>

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?


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