Hi people :) I have created a tree table using primefaces. In one of the table columns I have included 3 buttons. The problem is that the buttons work only for the first level and not for the second level. Can someone help me please. This is my treeTable code :
<h:form>
<p:treeTable value="#{processBean.treeNode}" var="node" ajax="true"
selectionMode="single" rowKey="#{node.id}">
<p:ajax event="select" listener="#{processBean.onSelect(node)}" />
<f:facet name="header">Processes View</f:facet>
<p:column headerText="Id">
<p:outputLabel value="#{node.id}" />
</p:column>
<p:column headerText="Name">
<p:outputLabel value="#{node.name}" />
</p:column>
<p:column headerText="Description">
<p:outputLabel value="#{node.description}" />
</p:column>
<p:column headerText="Created date">
<p:outputLabel value="#{node.createdDate}" />
</p:column>
<p:column headerText="Status">
<p:outputLabel value="#{node.status}" />
</p:column>
<p:column headerText="Actions" styleClass="centered-text">
<p:commandButton title="Start" ajax="true"
icon="fa fa-play Fs16 white"
action="#{processBean.startProcess(node)}">
</p:commandButton>
<p:spacer width="4%" />
<p:commandButton title="Skip" ajax="true"
icon="fa fa-step-forward Fs16 White"
actionListener="#{processBean.skipProcess(node)}">
</p:commandButton>
<p:spacer width="4%" />
<p:commandButton title="Complete" ajax="true"
icon="fa fa-stop Fs16 white"
actionListener="#{processBean.completeProcess(node)}">
</p:commandButton>
</p:column>
</p:treeTable>
</h:form>