TreeTable - Sort

Sibling nodes can be sorted within a parent.

Documentation
Document Viewer
NameSizeType
<style type="text/css">
    .ui-treetable table {
        table-layout: fixed
    }
</style>


<h:form>
    <p:treeTable value="#{ttBasicView.root}" var="document">
        <f:facet name="header">
            Document Viewer
        </f:facet>
        <p:column headerText="Name" sortBy="#{document.name}">
            <h:outputText value="#{document.name}" />
        </p:column>
        <p:column headerText="Size" sortBy="#{document.size}">
            <h:outputText value="#{document.size}" />
        </p:column>
        <p:column headerText="Type"  sortBy="#{document.type}">
            <h:outputText value="#{document.type}" />
        </p:column>
    </p:treeTable>
</h:form>

FREE THEMES

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

nova-light Nova-Light
nova-dark Nova-Dark
nova-colored Nova-Colored
luna-blue Luna-Blue
luna-amber Luna-Amber
luna-green Luna-Green
luna-pink Luna-Pink
omega Omega

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.