[jboss-dev-forums] [Design of JBoss jBPM] - JSF EL - Cant Pass parameters
falazar
do-not-reply at jboss.com
Mon Aug 21 16:10:22 EDT 2006
I am having a problem passing parameters in the JSF file
I am looping through all process definitions, and trying to then call a function that can return the # of instances of that process. But its not working. There doesnt appear to be any way to pass a parameter back into the bean from the jsf page.
| <c:forEach var="processDefinition" items="#{participantBean.allProcessDefinitions}">
| <tr class="normal" onmouseover="this.className='hovered';" onmouseout="this.className='normal';" onclick="document.all['newExe#{processDefinition.id}\'].click()">
| <td class="selectable"><h:outputText value="#{processDefinition.name}" /> (<h:outputText value="#{processDefinition.id}" />) </td>
| <td class="selectable"><h:outputText value="#{processDefinition.version}" /></td>
| <td class="selectable">
|
| PROBLEM ON NEXT LINE
| <h:outputText value="#{participantBean.allProcessInstances(processDefinition.id)}" /> </td>
| <td class="selectable">
| <h:commandLink action="#{participantBean.startNewProcessInstance}" id="newExe#{processDefinition.id}">
| <f:param name="processDefinitionId" value="#{processDefinition.id}"/>
| Start It!
| </h:commandLink>
| </td>
| </tr>
| </c:forEach>
|
// hmm count all active processes instead?
| // first get count of all processes here, then try it in the webpage, then return list if needed
| //public int getAllProcessInstances(long processDefinitionId)
| public String getAllProcessInstances()
| {
| //return "12";
| //System.out.println("PID:"+PID);
|
| return Integer.toString(jbpmBean.getJbpmContext().getGraphSession().findProcessInstances(109).size());
| //return Integer.toString(jbpmBean.getJbpmContext().getGraphSession().findProcessInstances(processDefinitionId).size());
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966532#3966532
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966532
More information about the jboss-dev-forums
mailing list