Primefaces TreeView node expansion

Posted by Boiler Bill on Stack Overflow See other posts from Stack Overflow or by Boiler Bill
Published on 2010-05-25T21:14:50Z Indexed on 2010/05/25 21:21 UTC
Read the original article Hit count: 1208

Filed under:
|

Being new to primefaces, I have been researching a way to have TreeView in dynamic mode update a separate tab pane given the id on Node expansion. This works great for node selection with the "update" attribute. Can it work the same way on Node Expansion was well?

Here is my code that works when a node is selected:

<p:tree id="tree" dynamic="true" var="node" cache="true" update="details"
 value="#{treeBean.root}" rendered="#{treeBean.root != null}" styleClass="inventoryTree"
 nodeExpandListener="#{treeBean.onNodeExpand}" nodeSelectListener="#{treeBean.onNodeSelect}">

© Stack Overflow or respective owner

Related posts about jsf

Related posts about primefaces