Locale

Change the locale of the datepicker, schedule and client side validation messages.

Input Style

Free Themes

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

PrimeOne Design

Saga Saga
Vela Vela
Arya Arya

Premium Themes

Premium themes are only available exclusively for PrimeFaces Theme Designer subscribers and therefore not included in PrimeFaces core.

bootstrap4-blue-light Bootstrap Blue
bootstrap4-purple-light Bootstrap Purple
bootstrap4-blue-dark Bootstrap Blue
bootstrap4-purple-dark Bootstrap Purple

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.

TreeTable Basic

TreeTable displays hierachical data in tabular format.

Document Viewer
NameSizeType
Document Detail

<div class="card">
    <h:form id="form">
        <p:treeTable value="#{ttBasicView.root}" var="document">
            <f:facet name="header">
                Document Viewer
            </f:facet>
            <p:column headerText="Name">
                <h:outputText value="#{document.name}"/>
            </p:column>
            <p:column headerText="Size">
                <h:outputText value="#{document.size}"/>
            </p:column>
            <p:column headerText="Type">
                <h:outputText value="#{document.type}"/>
            </p:column>
            <p:column style="width:3rem">
                <p:commandButton update=":form:documentPanel" oncomplete="PF('documentDialog').show()"
                               title="View Detail" icon="pi pi-search">
                    <f:setPropertyActionListener value="#{document}" target="#{ttBasicView.selectedDocument}"/>
                </p:commandButton>
            </p:column>
        </p:treeTable>

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

                    <h:outputLabel for="size" value="Size" styleClass="text-secondary" />
                    <h:outputText id="size" value="#{ttBasicView.selectedDocument.size}" />

                    <h:outputLabel for="type" value="Type" styleClass="text-secondary" />
                    <h:outputText id="type" value="#{ttBasicView.selectedDocument.type}" />
                </h:panelGrid>
            </p:outputPanel>
        </p:dialog>
    </h:form>
</div>