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.

Ajax Framework

Enhanced user experience with the powerful and easy to use Ajax Framework.

Basic
Action Listener
Counter: 0
Events
KeyUp
Blur
Input
Listener
Keyup
Advanced

<div class="card">
    <h:form>
        <h5 class="mt-0">Basic</h5>
        <h:panelGrid columns="3" cellpadding="7">
            <p:outputLabel for="name" value="Name"/>
            <p:inputText id="name" value="#{basicView.text1}"/>
            <h:outputText id="display" value="#{basicView.text1}"/>
        </h:panelGrid>
        <p:commandButton value="Submit" update="display" styleClass="mt-3" />
    </h:form>
</div>

<div class="card">
    <h:form>
        <h5 class="mt-0">Action Listener</h5>
        <h:panelGrid columns="2" cellpadding="7">
            <h:outputText value="Counter: "/>
            <h:outputText id="output" value="#{basicView.number}"/>
        </h:panelGrid>

        <p:commandButton value="Increment" action="#{basicView.increment}" update="output" styleClass="mt-3"/>
    </h:form>
</div>

<div class="card">
    <h:form>
        <h5 class="mt-0">Events</h5>
        <h:panelGrid columns="3" cellpadding="7">
            <h:outputText value="KeyUp"/>
            <p:inputText id="firstname" value="#{basicView.text2}">
                <p:ajax event="keyup" update="display2" process="@this"/>
            </p:inputText>
            <h:outputText id="display2" value="#{basicView.text2}"/>

            <h:outputText value="Blur"/>
            <p:inputText id="middlename" value="#{basicView.text3}">
                <p:ajax event="blur" update="display3"/>
            </p:inputText>
            <h:outputText id="display3" value="#{basicView.text3}"/>

            <h:outputText value="Input"/>
            <p:inputText id="lastname" value="#{basicView.text4}">
                <p:ajax event="input" update="display4"/>
            </p:inputText>
            <h:outputText id="display4" value="#{basicView.text4}"/>
        </h:panelGrid>

        <h5>Listener</h5>
        <h:panelGrid columns="3" cellpadding="7">
            <h:outputText value="Keyup"/>
            <p:inputText id="counter" value="#{basicView.text5}">
                <p:ajax event="keyup" update="display5" listener="#{basicView.handleKeyEvent}"/>
            </p:inputText>
            <h:outputText id="display5" value="#{basicView.text5}"/>
        </h:panelGrid>
    </h:form>
</div>

<div class="card">
    <h:form>
        <h5 class="mt-0">Advanced</h5>
        <p:growl id="msgs" showDetail="true" skipDetailIfEqualsSummary="true"/>

        <h:panelGrid columns="2" cellpadding="7" styleClass="mb-3">
            <p:outputLabel for="country" value="Country"/>
            <p:selectOneMenu id="country" value="#{basicView.country}" style="width:12rem">
                <p:ajax listener="#{basicView.onCountryChange}" update="city"/>
                <f:selectItem itemLabel="Select Country" itemValue="" noSelectionOption="true"/>
                <f:selectItems value="#{basicView.countries}"/>
            </p:selectOneMenu>

            <p:outputLabel for="city" value="City"/>
            <p:selectOneMenu id="city" value="#{basicView.city}" style="width:12rem">
                <f:selectItem itemLabel="Select City" itemValue="" noSelectionOption="true"/>
                <f:selectItems value="#{basicView.cities}"/>
            </p:selectOneMenu>
        </h:panelGrid>

        <p:commandButton value="Submit" update="msgs" action="#{basicView.displayLocation}" icon="pi pi-check"/>
    </h:form>
</div>