Locale

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

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

DataExporter provides easy customization options for the exported document using pre and post processors or ExcelOptions and PDFOptions objects.

Processors
CodeNameCategoryQuantity
250vm23ccGreen T-ShirtClothing74
waas1x2asHeadphonesElectronics8
2c42cb5cbPurple Gemstone NecklaceAccessories62
zz21cz3c1Blue BandFitness2
vbb124btrGame ControllerElectronics2
nvklal433Black WatchAccessories61
mnb5mb2m5Pink BandFitness63
cm230f032Gaming SetElectronics63
plb34234vGold Phone CaseAccessories0
mnb5mb2m5Pink BandFitness63
Options
NameCategoryQuantity
Purple T-ShirtClothing2
BraceletAccessories73
Light Green T-ShirtClothing34
Pink PurseAccessories0
SneakersClothing52
Pink PurseAccessories0
Gold Phone CaseAccessories0
Purple BandFitness6
Bamboo WatchAccessories24
Light Green T-ShirtClothing34

<div class="card">
    <h:form>
        <h5>Processors</h5>
        <p:commandButton value="XLS" styleClass="p-mr-2 p-mb-2">
            <p:dataExporter type="xls" target="tbl" fileName="products"
                            postProcessor="#{customizedDocumentsView.postProcessXLS}"/>
        </p:commandButton>

        <p:commandButton value="PDF" styleClass="p-mr-2 p-mb-2">
            <p:dataExporter type="pdf" target="tbl" fileName="products"
                            preProcessor="#{customizedDocumentsView.preProcessPDF}"/>
        </p:commandButton>

        <p:dataTable id="tbl" var="product" value="#{customizedDocumentsView.products}"
                     paginator="true" rows="10" styleClass="p-mt-2">
            <p:column>
                <f:facet name="header">
                    <h:outputText value="Code"/>
                </f:facet>
                <h:outputText value="#{product.code}"/>
            </p:column>

            <p:column>
                <f:facet name="header">
                    <h:outputText value="Name"/>
                </f:facet>
                <h:outputText value="#{product.name}"/>
            </p:column>

            <p:column>
                <f:facet name="header">
                    <h:outputText value="Category"/>
                </f:facet>
                <h:outputText value="#{product.category}"/>
            </p:column>

            <p:column>
                <f:facet name="header">
                    <h:outputText value="Quantity"/>
                </f:facet>
                <h:outputText value="#{product.quantity}"/>
            </p:column>
        </p:dataTable>

        <h5>Options</h5>
        <p:commandButton value="XLS" styleClass="p-mr-2 p-mb-2">
            <p:dataExporter type="xls" target="tbl2" fileName="products"
                            options="#{customizedDocumentsView.excelOpt}"/>
        </p:commandButton>

        <p:commandButton value="XLS" styleClass="p-mr-2 p-mb-2">
            <p:dataExporter type="pdf" target="tbl2" fileName="products"
                            options="#{customizedDocumentsView.pdfOpt}"/>
        </p:commandButton>

        <p:dataTable id="tbl2" var="product" value="#{customizedDocumentsView.products2}"
                     paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}"
                     paginator="true" rows="10" styleClass="p-mt-2">
            <p:column>
                <f:facet name="header">
                    <h:outputText value="Name"/>
                </f:facet>
                <h:outputText value="#{product.name}"/>
            </p:column>

            <p:column>
                <f:facet name="header">
                    <h:outputText value="Category"/>
                </f:facet>
                <h:outputText value="#{product.category}"/>
            </p:column>

            <p:column>
                <f:facet name="header">
                    <h:outputText value="Quantity"/>
                </f:facet>
                <h:outputText value="#{product.quantity}"/>
            </p:column>
        </p:dataTable>
    </h:form>
</div>