Locale

Input Style

Free Themes

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

PrimeOne Design

Saga Saga
Vela Vela
Arya Arya

Premium Themes

Premium themes are only available exclusively for PrimeFaces Theme Designer subscribers and therefore not included in PrimeFaces core.

bootstrap4-blue-light Bootstrap Blue
bootstrap4-purple-light Bootstrap Purple
bootstrap4-blue-dark Bootstrap Blue
bootstrap4-purple-dark Bootstrap Purple

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

PREMIUM TEMPLATES

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

DataExporter Lazy

Lazy loading is fully supported when data is being exported.

Standard
Page Only
NameCountryCompanyRepresentative
David DarakjyRussiaCommercial PressAsiya Javayant
Izzy GarufiCanadaFeltz Printing ServiceStephen Shaw
Salvatore StockhamRussiaPrinting DimensionsXuxue Feng
Mujtaba NickaJapanKing, Christopher A EsqAsiya Javayant
Munro FerenczGermanyCommercial PressAsiya Javayant
Francesco ShinkoArgentinaMorlong AssociatesElwin Sharvill
Isabel BowleyItalyFeiner BrosOnyama Limba
Darci PoquetteGermanyChapman, Ross E EsqIoni Bowcher
Aditya KuskoRussiaFeltz Printing ServiceOnyama Limba
Greenwood BologniaUnited KingdomCommercial PressOnyama Limba

<div class="card">
    <h:form>
       
        <div class="p-d-flex p-jc-between">
            <div>
                <h5>Standard</h5>
                <p:commandButton value="XLS" styleClass="p-mr-2 p-mb-2">
                    <p:dataExporter type="xls" target="tbl" fileName="customers"/>
                </p:commandButton>
    
                <p:commandButton value="XLXS" styleClass="p-mr-2 p-mb-2">
                    <p:dataExporter type="xlsxstream" target="tbl" fileName="customers"/>
                </p:commandButton>
    
                <p:commandButton value="PDF" styleClass="p-mr-2 p-mb-2">
                    <p:dataExporter type="pdf" target="tbl" fileName="customers"/>
                </p:commandButton>
    
                <p:commandButton value="CSV" styleClass="p-mr-2 p-mb-2">
                    <p:dataExporter type="csv" target="tbl" fileName="customers" />
                </p:commandButton>
    
                <p:commandButton value="XML" styleClass="p-mr-2 p-mb-2">
                    <p:dataExporter type="xml" target="tbl" fileName="customers"/>
                </p:commandButton>
    
                <p:commandButton value="TXT" styleClass="p-mr-2 p-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="p-mr-2 p-mb-2 ui-button-outlined">
                    <p:dataExporter type="xls" target="tbl" fileName="customers" pageOnly="true"/>
                </p:commandButton>

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

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

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

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

                <p:commandButton value="TXT" styleClass="p-mr-2 p-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="p-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>