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

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.

Ajax Framework Validation

Validations are executed on the server side and page is updated with the result.


<div class="card">
    <h:form>
        <p:messages id="msgs"/>

        <h:panelGrid columns="3" cellpadding="7" styleClass="p-mb-3">
            <p:outputLabel for="firstname" value="Firstname:"/>
            <p:inputText id="firstname" value="#{remoteValidationView.firstname}" required="true" label="Firstname">
                <f:validateLength minimum="2"/>
            </p:inputText>
            <p:message for="firstname" display="icon"/>

            <p:outputLabel for="lastname" value="Lastname:"/>
            <p:inputText id="lastname" value="#{remoteValidationView.lastname}" label="Lastname" required="true">
                <f:validateLength minimum="2"/>
                <p:ajax update="msgLastname" event="keyup"/>
            </p:inputText>
            <p:message for="lastname" id="msgLastname" display="icon"/>

        </h:panelGrid>

        <p:commandButton value="Save" update="@form" action="#{remoteValidationView.save}" icon="pi pi-check"/>
    </h:form>
</div>