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 Column Resize

Columns can be resized in two ways, with a helper or live.

Basic
NameSizeType
Live
NameSizeType

<h:form>

    <div class="card">
        <h5>Basic</h5>
        <p:treeTable value="#{ttBasicView.root}" var="document" style="margin-bottom:20px"
                     resizableColumns="true">
            <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:treeTable>
    </div>

    <div class="card">
        <h5>Live</h5>
        <p:treeTable value="#{ttBasicView.root}" var="document" resizableColumns="true" liveResize="true">
            <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:treeTable>
    </div>

</h:form>