Horizontal Tree - Basic Horizontal tree has two modes, in client mode all nodes are available at client side whereas in ajax mode only expanded nodes are available.

Client

Root

Ajax

Root
<h:form>
    <h3 style="margin-top:0">Client</h3>
    <p:tree value="#{treeBasicView.root}" var="node" orientation="horizontal">
        <p:treeNode>
            <h:outputText value="#{node}" />
        </p:treeNode>
    </p:tree>

    <h3>Ajax</h3>
    <p:tree value="#{treeBasicView.root}" var="node" dynamic="true" orientation="horizontal">
        <p:treeNode>
            <h:outputText value="#{node}" />
        </p:treeNode>
    </p:tree>
</h:form>
                
PrimeTek, Copyright © 2015
All rights reserved.
Running PrimeFaces-6.0.12 on Mojarra-2.2.8.