Input Style

Free Themes

Built-in component themes created by the PrimeFaces Theme Designer.

Saga Saga
Vela Vela
Arya Arya

Legacy Free Themes

Luna Amber Luna Amber
Luna Blue Luna Blue
Luna Green Luna Green
Luna Pink Luna Pink
Nova Nova
Nova Nova Alt
Nova Nova Accent

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.

Tree DragDrop

Nodes can be reordered within the same tree or transferred between multiple trees using drag and drop.


<div class="card">
    <h:form id="form">
        <p:growl id="msgs" showDetail="true" skipDetailIfEqualsSummary="true"/>

        <h:panelGrid columns="3">
            <p:tree id="tree1" value="#{treeDNDView.root1}" var="node" selectionMode="single"
                    selection="#{treeDNDView.selectedNode1}" style="width:16rem"
                    draggable="true" droppable="true" dragdropScope="demo">
                <p:ajax event="dragdrop" listener="#{treeDNDView.onDragDrop}" update=":form:msgs"/>
                <p:treeNode>
                    <h:outputText value="#{node}"/>
                </p:treeNode>
            </p:tree>

            <h:outputText styleClass="pi pi-sort-alt p-mx-5 text-secondary" style="transform: rotate(90deg); font-size: 3rem" />

            <p:tree id="tree2" value="#{treeDNDView.root2}" var="node" selectionMode="single"
                    selection="#{treeDNDView.selectedNode2}" style="width:16rem"
                    draggable="true" droppable="true" dragdropScope="demo">
                <p:ajax event="dragdrop" listener="#{treeDNDView.onDragDrop}" update=":form:msgs"/>
                <p:treeNode>
                    <h:outputText value="#{node}"/>
                </p:treeNode>
            </p:tree>
        </h:panelGrid>
    </h:form>
</div>