Tree - Basic

In it's simplest form, tree displays a server side model on client side. A pure client side tree is useful to create tree based navigation menus.

Source

<h:form id="form">

    <p:tree value="#{treeBean.root}" var="node" id="tree">
        <p:treeNode id="treeNode">
            <h:outputText value="#{node}" id="lblNode"/>
        </p:treeNode>
    </p:tree>

</h:form>