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 Scroll

Both vertical and horizontal scrolling of the data is supported.

Vertical
NameSizeType
Applications100kbFolder
Cloud20kbFolder
Horizontal
NameSizeType
Vertical and Horizontal
NameSizeType

<h:form>
    <div class="card">
        <h5>Vertical</h5>
        <p:treeTable value="#{ttScrollableView.root1}" var="document" style="margin-top:0" scrollable="true"
                     scrollHeight="350">
            <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>Horizontal</h5>
        <p:treeTable value="#{ttScrollableView.root2}" var="document" scrollable="true" scrollWidth="600">
            <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>Vertical and Horizontal</h5>
        <p:treeTable value="#{ttScrollableView.root3}" var="document" scrollable="true" scrollHeight="350"
                     scrollWidth="600">
            <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>