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 Display Priority

Columns can be given a default display priority for ordering columns.

Document Viewer
Size (dp0)Type (dp1)Name (dp2)

<style type="text/css">
    .ui-treetable table {
        table-layout: fixed

    .value {
        font-weight: bold

    .ui-dialog table {
        margin-left: auto;
        margin-right: auto;

<div class="card">
    <h:form id="form">
        <p:treeTable value="#{ttBasicView.root}" var="document">
            <f:facet name="header">
                Document Viewer
            <p:column headerText="Name (dp2)" displayPriority="2">
                <h:outputText value="#{}"/>
            <p:column headerText="Size (dp0)" displayPriority="0">
                <h:outputText value="#{document.size}"/>
            <p:column headerText="Type (dp1)" displayPriority="1">
                <h:outputText value="#{document.type}"/>