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.

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

Certain rows can be styled based on a condition using rowStyleClass. Table below highlights products that are cheaper than $50.

CodeNameCategoryQuantity
f230fh0g3Bamboo WatchAccessories24
nvklal433Black WatchAccessories61
zz21cz3c1Blue BandFitness2
244wgerg2Blue T-ShirtClothing25
h456wer53BraceletAccessories73
av2231fwgBrown PurseAccessories0
bib36pfvmChakra BraceletAccessories5
mbvjkgip5Galaxy EarringsAccessories23
vbb124btrGame ControllerElectronics2
cm230f032Gaming SetElectronics63

<style type="text/css">
    .cheap {
        background-color: #54a90a !important;
        background-image: none !important;
        color: #ffffff !important;
    }
</style>

<div class="card">
    <p:dataTable var="product" value="#{dtBasicView.products}"
                 rowStyleClass="#{product.price le 50.0 ? 'cheap' : null}">

        <p:column headerText="Code">
            <h:outputText value="#{product.code}" />
        </p:column>

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

        <p:column headerText="Category">
            <h:outputText value="#{product.category}" />
        </p:column>

        <p:column headerText="Quantity">
            <h:outputText value="#{product.quantity}" />
        </p:column>
    </p:dataTable>
</div>