Locale

Language
English
English
English
French
German
German
Italian
Korean
Spanish
Catalan
Dutch
Portuguese
Portuguese
Arabic
Arabic
Bulgarian
Czech
Greek
Persian
Finnish
Danish
Hindi
Indonesian
Croatian
Japanese
Hungarian
Hebrew
Georgian
Central Kurdish
Khmer
Kyrgyz
Kazakh
Lithuanian
Latvian
Malay
Norwegian
Polish
Romanian
Russian
Slovak
Slovenian
Serbian
Swedish
Thai
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

Input Style

Free Themes

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

Saga Saga
Vela Vela
Arya Arya

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

Ajax Framework

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

Basic
Action Listener
Counter: 0
Events
Listener
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">
            <p:outputLabel for="@next" 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}"/>

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

            <p:outputLabel for="@next" 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">
            <p:outputLabel for="@next" 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>