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


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

TreeTable ContextMenu

ContextMenu has special integration with TreeTable. Even different menus can be assigned to different node types by matching node types.

Document Viewer
Document Detail

<div class="card">
    <h:form id="form">
        <p:treeTable id="docs" value="#{ttContextMenuView.root}" var="document" selectionMode="single"
            <f:facet name="header">
                Document Viewer
            <p:column headerText="Name">
                <h:outputText value="#{}"/>
            <p:column headerText="Size">
                <h:outputText value="#{document.size}"/>
            <p:column headerText="Type">
                <h:outputText value="#{document.type}"/>

        <p:contextMenu for="docs">
            <p:menuitem value="View" update="documentPanel" icon="pi pi-search"
            <p:menuitem value="Delete" action="#{ttContextMenuView.deleteNode}" update="docs"
                        icon="pi pi-times"/>

        <p:dialog id="dialog" header="Document Detail" showEffect="fade" widgetVar="documentDialog" modal="true" resizable="false" width="250">
            <p:outputPanel id="documentPanel">
                <h:panelGrid columns="2" rendered="#{not empty ttContextMenuView.selectedNode}" cellpadding="7">
                    <h:outputLabel for="name" value="Name" />
                    <h:outputText id="name" value="#{}" styleClass="p-text-bold"/>

                    <h:outputLabel for="size" value="Size"/>
                    <h:outputText id="size" value="#{}" styleClass="p-text-bold" />

                    <h:outputLabel for="type" value="Type "/>
                    <h:outputText id="type" value="#{}" styleClass="p-text-bold" />