Locale

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

Language
English
French
German
Italian
Korean
Spanish
Catalan
Dutch
Portuguese
Portuguese
Arabic
Czech
Greek
Persian
Hindi
Indonesian
Croatian
Japanese
Hungarian
Hebrew
Georgian
Lithuanian
Latvian
Norwegian
Polish
Romanian
Russian
Slovak
Slovenian
Serbian
Swedish
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

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.

Bootstrap light blue and dark blue themes are also included in PrimeFaces 10.x builds for Elite subscribers.

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.

DataTable Sort

Sorting is enabled with field or sortBy expressions. Both single and multiple column sorting are supported.

Basic
CodeNameCategoryQuantity
f230fh0g3Bamboo WatchAccessories24
nvklal433Black WatchAccessories61
zz21cz3c1Blue BandFitness2
244wgerg2Blue T-ShirtClothing25
h456wer53BraceletAccessories73
av2231fwgBrown PurseAccessories0
bib36pfvmChakra BraceletAccessories5
mbvjkgip5Galaxy EarringsAccessories23
vbb124btrGame ControllerElectronics2
cm230f032Gaming SetElectronics63
Basic (shorthand notation)
CodeNameCategoryQuantity
f230fh0g3Bamboo WatchAccessories24
nvklal433Black WatchAccessories61
zz21cz3c1Blue BandFitness2
244wgerg2Blue T-ShirtClothing25
h456wer53BraceletAccessories73
av2231fwgBrown PurseAccessories0
bib36pfvmChakra BraceletAccessories5
mbvjkgip5Galaxy EarringsAccessories23
vbb124btrGame ControllerElectronics2
cm230f032Gaming SetElectronics63
Default Sort
CodeNameCategoryQuantity
f230fh0g3Bamboo WatchAccessories24
nvklal433Black WatchAccessories61
h456wer53BraceletAccessories73
av2231fwgBrown PurseAccessories0
bib36pfvmChakra BraceletAccessories5
mbvjkgip5Galaxy EarringsAccessories23
244wgerg2Blue T-ShirtClothing25
vbb124btrGame ControllerElectronics2
cm230f032Gaming SetElectronics63
zz21cz3c1Blue BandFitness2
Multiple Columns

Use metakey to add a column to the sort selection.

CodeNameCategoryQuantityPrice
250vm23ccGreen T-ShirtClothing74$49.00
250vm23ccGreen T-ShirtClothing74$49.00
h456wer53BraceletAccessories73$15.00
cm230f032Gaming SetElectronics63$299.00
mnb5mb2m5Pink BandFitness63$79.00
mnb5mb2m5Pink BandFitness63$79.00
2c42cb5cbPurple Gemstone NecklaceAccessories62$45.00
2c42cb5cbPurple Gemstone NecklaceAccessories62$45.00
nvklal433Black WatchAccessories61$72.00
nvklal433Black WatchAccessories61$72.00
nvklal433Black WatchAccessories61$72.00
nvklal433Black WatchAccessories61$72.00
nbm5mv45nSneakersClothing52$78.00
nbm5mv45nSneakersClothing52$78.00
nbm5mv45nSneakersClothing52$78.00
v435nn85nMini SpeakersClothing42$85.00
v435nn85nMini SpeakersClothing42$85.00
09zx9c0zcPainted Phone CaseAccessories41$56.00
09zx9c0zcPainted Phone CaseAccessories41$56.00
acvx872gcYellow EarbudsElectronics35$89.00
vb34btbg5Light Green T-ShirtClothing34$49.00
244wgerg2Blue T-ShirtClothing25$29.00
244wgerg2Blue T-ShirtClothing25$29.00
gwuby345vYoga SetFitness25$20.00
f230fh0g3Bamboo WatchAccessories24$65.00
f230fh0g3Bamboo WatchAccessories24$65.00
4920nnc2dGreen EarbudsElectronics23$89.00
4920nnc2dGreen EarbudsElectronics23$89.00
4920nnc2dGreen EarbudsElectronics23$89.00
4920nnc2dGreen EarbudsElectronics23$89.00
4920nnc2dGreen EarbudsElectronics23$89.00
k8l6j58jlLime BandFitness12$79.00
k8l6j58jlLime BandFitness12$79.00
k8l6j58jlLime BandFitness12$79.00
pxpzczo23Purple BandFitness6$79.00
bib36pfvmChakra BraceletAccessories5$32.00
bib36pfvmChakra BraceletAccessories5$32.00
bib36pfvmChakra BraceletAccessories5$32.00
zx23zc42cTeal T-ShirtClothing3$49.00
zx23zc42cTeal T-ShirtClothing3$49.00
5k43kkk23Purple T-ShirtClothing2$49.00
5k43kkk23Purple T-ShirtClothing2$49.00
vbb124btrGame ControllerElectronics2$99.00
av2231fwgBrown PurseAccessories0$120.00
plb34234vGold Phone CaseAccessories0$24.00
r23fwf2w3Pink PurseAccessories0$110.00
r23fwf2w3Pink PurseAccessories0$110.00
r23fwf2w3Pink PurseAccessories0$110.00
r23fwf2w3Pink PurseAccessories0$110.00
fldsmn31bGrey T-ShirtClothing0$48.00

<h:form>
    <div class="card">
        <h5>Basic</h5>
        <p:dataTable var="product" value="#{dtSortView.products1}" allowUnsorting="true" sortMode="single">
            <p:column sortBy="#{product.code}" headerText="Code">
                <h:outputText value="#{product.code}"/>
            </p:column>
            <p:column sortBy="#{product.name}" headerText="Name" sortOrder="asc">
                <h:outputText value="#{product.name}"/>
            </p:column>
            <p:column sortBy="#{product.category}" headerText="Category">
                <h:outputText value="#{product.category}"/>
            </p:column>
            <p:column sortBy="#{product.quantity}" headerText="Quantity">
                <h:outputText value="#{product.quantity}"/>
            </p:column>
        </p:dataTable>
    </div>
    <div class="card">
        <h5>Basic (shorthand notation)</h5>
        <p:dataTable var="product" value="#{dtSortView.products1}" allowUnsorting="true" sortMode="single">
            <p:column field="code" headerText="Code" filterable="false"/>
            <p:column field="name" headerText="Name" sortOrder="asc" filterable="false"/>
            <p:column field="category" headerText="Category" filterable="false"/>
            <p:column field="quantity" headerText="Quantity" filterable="false"/>
        </p:dataTable>
    </div>
    <div class="card">
        <h5>Default Sort</h5>
        <p:dataTable var="product" value="#{dtSortView.products2}" sortMode="multiple"
                     sortBy="#{dtSortView.sortBy}">
            <p:column field="code" headerText="Code" filterable="false"/>
            <p:column field="name" headerText="Name" filterable="false"/>
            <p:column field="category" headerText="Category" filterable="false"/>
            <p:column field="quantity" headerText="Quantity" filterable="false"/>
        </p:dataTable>
    </div>
    <div class="card">
        <h5>Multiple Columns</h5>
        <p>Use metakey to add a column to the sort selection.</p>

        <p:dataTable var="product" value="#{dtSortView.products3}" sortMode="multiple">
            <p:column headerText="Code" sortBy="#{product.code}">
                <h:outputText value="#{product.code}"/>
            </p:column>

            <p:column headerText="Name" sortBy="#{product.name}">
                <h:outputText value="#{product.name}"/>
            </p:column>

            <p:column headerText="Category" sortBy="#{product.category}" sortOrder="asc" sortPriority="2">
                <h:outputText value="#{product.category}"/>
            </p:column>

            <p:column headerText="Quantity" sortBy="#{product.quantity}" sortOrder="desc" sortPriority="1">
                <h:outputText value="#{product.quantity}"/>
            </p:column>

            <p:column headerText="Price" sortBy="#{product.price}">
                <h:outputText value="#{product.price}">
                    <f:convertNumber type="currency" currencySymbol="$"/>
                </h:outputText>
            </p:column>
        </p:dataTable>
    </div>
</h:form>