Below is the JSF snippet I am using and my backing bean is pretty a straightforward session bean that generates a 2 level tree, which shows up fine in client toggle mode but then I get no events.
1. No node select events occur but I do see the expand and collapse events.
2. The node doesn't expand in the browser even though the even occurs on the server side.
3. My p:ajax doesn't seem to cause anything to happen (not sure if p:tree and p:ajax work together).
Any advice would be appreciated here. Thanks. I don't see any errors in the log.
Code: Select all
<p:tree value="#{reportTree.model}" toggleMode="async" nodeSelectListener="#{reportTree.onNodeSelect}"
cache="false" nodeExpandListener="#{reportTree.onNodeExpand}" nodeCollapseListener="#{reportTree.onNodeCollapse}">
<p:ajax event="click" actionListener="#{reportTree.nodeAction}" update="instanceGroup"/>
</p:tree>