Locale

Language
English
English
English
French
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
Swedish
Thai
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

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

DataExporter Lazy

Lazy loading is fully supported when data is being exported.

Standard
Page Only
NameCountryCompanyRepresentative
Juan WieserFrancePrinting DimensionsAsiya Javayant
Leja CaldareraItalyTruhlar And Truhlar AttysBernardo Dominic
Isabel BowleyIndiaMorlong AssociatesOnyama Limba
Wickens NestleFranceChemel, James L CpaIvan Magalhaes
Ivar PaprockiFranceBuckley Miller WrightOnyama Limba
Antonio CaudyBrazilBuckley Miller WrightXuxue Feng
Claire TollnerIndiaRangoni Of FlorenceAsiya Javayant
Kaitlin OstroskyUnited KingdomRousseaux, Michael EsqBernardo Dominic
Jefferson SchemmerCanadaTruhlar And Truhlar AttysIvan Magalhaes
Kadeem FlosiCanadaChanay, Jeffrey A EsqOnyama Limba

<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>