Locale

Change the locale of the datepicker, schedule and client side validation messages.

Language
English
English
English
French
German
German
German
Italian
Korean
Spanish
Catalan
Dutch
Portuguese
Portuguese
Arabic
Arabic
Bulgarian
Czech
Greek
Persian
Finnish
Danish
Hindi
Indonesian
Croatian
Japanese
Hungarian
Hebrew
Georgian
Central Kurdish
Khmer
Kyrgyz
Kazakh
Lithuanian
Latvian
Malay
Norwegian
Polish
Romanian
Russian
Slovak
Slovenian
Serbian
Serbian
Swedish
Thai
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

Input Style

Themes

PrimeOne
Saga Saga
Vela Vela
Arya Arya
Bootstrap
bootstrap4-blue-light Bootstrap Blue
bootstrap4-purple-light Bootstrap Purple
bootstrap4-blue-dark Bootstrap Blue
bootstrap4-purple-dark Bootstrap Purple
Material Design
material-indigo-light Indigo
material-deeppurple-light' Deep Purple
material-indigo-dark Indigo
material-deeppurple-dark' Deep Purple
Material Design Compact
material-indigo-light Indigo
material-deeppurple-light' Deep Purple
material-indigo-dark Indigo
material-deeppurple-dark' Deep Purple

TreeTable Multi View State

MultiViewState (MVS) feature enables TreeTable to maintain its state across pages by setting multiViewState attribute to true. In this demo, manipulate TreeTable with pagination, sorting, filtering and selection, then visit another page and then come back to this page. TreeTable state should remain as you've left it.

NameSizeType

<div class="card">
    <h:form>
        <p:messages id="messages"/>

        <p:commandButton value="Clear MultiViewState" action="#{ttMultiViewStateView.clearMultiViewState}"
                         update="@form" styleClass="mb-3" />

        <p:treeTable widgetVar="treeTable" value="#{ttMultiViewStateView.root}" var="document"
                        styleClass="ui-fluid" multiViewState="true">
            <p:column headerText="Name" filterBy="#{document.name}" filterMatchMode="contains"
                      sortBy="#{document.name}">
                <h:outputText value="#{document.name}"/>
            </p:column>
            <p:column headerText="Size">
                <h:outputText value="#{document.size}"/>
            </p:column>
            <p:column headerText="Type" filterBy="#{document.type}" filterMatchMode="exact"
                      sortBy="#{document.type}">
                <f:facet name="filter">
                    <p:selectOneMenu onchange="PF('treeTable').filter()" styleClass="custom-filter">
                        <f:selectItem itemLabel="Select One" itemValue="#{null}" noSelectionOption="true"/>
                        <f:selectItem itemLabel="Folder" itemValue="Folder"/>
                        <f:selectItem itemLabel="Application" itemValue="Application"/>
                        <f:selectItem itemLabel="Zip" itemValue="Zip"/>
                        <f:selectItem itemLabel="Text" itemValue="Text"/>
                        <f:selectItem itemLabel="PDF" itemValue="PDF"/>
                        <f:selectItem itemLabel="Picture" itemValue="Picture"/>
                    </p:selectOneMenu>
                </f:facet>

                <h:outputText value="#{document.type}"/>
            </p:column>
        </p:treeTable>
    </h:form>
</div>