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

DataExporter Lazy

Lazy loading is fully supported when data is being exported.

Standard
Page Only
NameCountryCompanyRepresentative
Emily M SergiItalyFeltz Printing ServiceIvan Magalhaes
Sinclair I WhobreyBrazilPrinting DimensionsAnna Fali
Costa U VocelkaIndiaBenton, John B JrAsiya Javayant
Emily J IturbideIndiaTruhlar And Truhlar AttysXuxue Feng
Aruna Q WaycottAustraliaTruhlar And Truhlar AttysAnna Fali
Sinclair P CampainAustraliaFeiner BrosAnna Fali
Isabel L RutaGermanyRousseaux, Michael EsqOnyama Limba
Sinclair R ShinkoCanadaBuckley Miller WrightIvan Magalhaes
Ricardo G GarufiAustraliaBuckley Miller WrightIvan Magalhaes
Salvatore K TollnerIndiaBenton, John B JrStephen Shaw

<div class="card">
    <h:form>
       
        <div class="flex justify-content-between">
            <div>
                <h5>Standard</h5>
                <p:commandButton value="XLS" styleClass="mr-2 mb-2">
                    <p:dataExporter type="xls" target="tbl" fileName="customers"/>
                </p:commandButton>
    
                <p:commandButton value="XLSX" styleClass="mr-2 mb-2">
                    <p:dataExporter type="xlsxstream" target="tbl" fileName="customers"/>
                </p:commandButton>
    
                <p:commandButton value="PDF" styleClass="mr-2 mb-2">
                    <p:dataExporter type="pdf" target="tbl" fileName="customers"/>
                </p:commandButton>
    
                <p:commandButton value="CSV" styleClass="mr-2 mb-2">
                    <p:dataExporter type="csv" target="tbl" fileName="customers" />
                </p:commandButton>
    
                <p:commandButton value="XML" styleClass="mr-2 mb-2">
                    <p:dataExporter type="xml" target="tbl" fileName="customers"/>
                </p:commandButton>
    
                <p:commandButton value="TXT" styleClass="mr-2 mb-2">
                    <p:dataExporter type="txt" target="tbl" fileName="customers" exporter="#{dataExporterView.textExporter}"/>
                </p:commandButton>
            </div>

            <div>
                <h5>Page Only</h5>
                <p:commandButton value="XLS" styleClass="mr-2 mb-2 ui-button-outlined">
                    <p:dataExporter type="xls" target="tbl" fileName="customers" pageOnly="true"/>
                </p:commandButton>

                <p:commandButton value="XLSX" styleClass="mr-2 mb-2 ui-button-outlined">
                    <p:dataExporter type="xlsxstream" target="tbl" fileName="customers" pageOnly="true"/>
                </p:commandButton>

                <p:commandButton value="PDF" styleClass="mr-2 mb-2 ui-button-outlined">
                    <p:dataExporter type="pdf" target="tbl" fileName="customers" pageOnly="true"/>
                </p:commandButton>

                <p:commandButton value="CSV" styleClass="mr-2 mb-2 ui-button-outlined">
                    <p:dataExporter type="csv" target="tbl" fileName="customers" pageOnly="true"/>
                </p:commandButton>

                <p:commandButton value="XML" styleClass="mr-2 mb-2 ui-button-outlined">
                    <p:dataExporter type="xml" target="tbl" fileName="customers" pageOnly="true"/>
                </p:commandButton>

                <p:commandButton value="TXT" styleClass="mr-2 mb-2 ui-button-outlined">
                    <p:dataExporter type="txt" target="tbl" fileName="customers" pageOnly="true"
                                    exporter="#{dataExporterView.textExporter}"/>
                </p:commandButton>
            </div>
        </div>

        <p:dataTable id="tbl" var="customer" value="#{deLazyView.lazyModel}"
                     sortMode="single" filteredValue="#{deLazyView.filteredCustomers}"
                     paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {Exporters}"
                     paginator="true" rows="10" styleClass="mt-2">

            <p:column headerText="Name" sortBy="#{customer.name}" filterBy="#{customer.name}">
                <h:outputText value="#{customer.name}"/>
            </p:column>
            <p:column headerText="Country" sortBy="#{customer.country}" filterBy="#{customer.country}">
                <h:outputText style="vertical-align: middle; margin-left: .5rem"
                              value="#{customer.country.name}"/>
            </p:column>
            <p:column headerText="Company" sortBy="#{customer.company}" filterBy="#{customer.company}">
                <h:outputText value="#{customer.company}"/>
            </p:column>
            <p:column headerText="Representative" sortBy="#{customer.representative}"
                      filterBy="#{customer.representative}">
                <p:graphicImage name="images/avatar/#{customer.representative.image}" library="demo"
                                width="32" style="vertical-align: middle"/>
                <h:outputText style="vertical-align: middle; margin-left: .5rem"
                              value="#{customer.representative.name}"/>
            </p:column>
        </p:dataTable>
    </h:form>
</div>