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

DataTable Dynamic Columns

Columns of datatable can be created dynamically using the p:columns component.

Available columns are name, country, date, status and activity.
NAMECOUNTRYDATE
STATUS
ACTIVITY
Tony P StensethCanada2024-10-19PROPOSAL0
Clifford O SlusarskiRussia2024-10-07PROPOSAL77
Ivar V FerenczArgentina2024-10-23UNQUALIFIED61
Greenwood Y MaletJapan2024-10-11RENEWAL64
Morrow A StensethBrazil2024-10-29NEGOTIATION17
Francesco O MorascaIndia2024-10-31RENEWAL86
Adams T TollnerCanada2024-10-06QUALIFIED42
Adams R RimFrance2024-10-05UNQUALIFIED95
Morrow O GillianJapan2024-10-06UNQUALIFIED23
Ricardo Y PoquetteUnited Kingdom2024-10-06NEW69

<div class="card">
    Available columns are <b>name</b>, <b>country</b>, <b>date</b>, <b>status</b> and <b>activity</b>.

    <h:form id="form">
        <div class="mt-3 mb-5">
            <p:inputText id="template" value="#{dtColumnsView.columnTemplate}" size="50" styleClass="mr-2"/>
            <p:commandButton update="customers" action="#{dtColumnsView.updateColumns}" value="Update"
                             process="@parent" icon="pi pi-refresh"
                             oncomplete="PF('customersTable').clearFilters()"/>
        </div>

        <p:dataTable id="customers" var="customer" value="#{dtColumnsView.customers}" widgetVar="customersTable"
                     filteredValue="#{dtColumnsView.filteredCustomers}">

            <p:columns value="#{dtColumnsView.columns}" var="column" headerText="#{column.header}" field="#{column.property}">
                <f:facet name="filter">
                    <p:datePicker selectionMode="range" converter="javax.faces.DateTime" onchange="PF('customersTable').filter()" rendered="#{column.type eq 'date'}"/>
                    <p:selectOneMenu onchange="PF('customersTable').filter()" rendered="#{column.type eq 'enum'}">
                        <f:selectItem itemValue="#{null}" itemLabel=""/>
                        <f:selectItems value="#{column.klazz.enumConstants}" />
                    </p:selectOneMenu>
                </f:facet>
            </p:columns>

        </p:dataTable>
    </h:form>
</div>