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.

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;
    }
</style>

<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 (dp2)" displayPriority="2">
                <h:outputText value="#{document.name}"/>
            </p:column>
            <p:column headerText="Size (dp0)" displayPriority="0">
                <h:outputText value="#{document.size}"/>
            </p:column>
            <p:column headerText="Type (dp1)" displayPriority="1">
                <h:outputText value="#{document.type}"/>
            </p:column>
        </p:treeTable>
    </h:form>
</div>