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.

Password

Password component is an extended version of standard inputSecret component with theme integration, strength indicator and match mode.

Basic
Feedback
Feedback - Spanish
Inline Feedback
Match Passwords

<div class="card">
    <h:form>
        <h5>Basic</h5>
        <p:password id="nonFeedback" value="#{passwordView.password1}"/>

        <h5>Feedback</h5>
        <p:password id="feedback" value="#{passwordView.password2}" feedback="true"/>

        <h5>Feedback - Spanish</h5>
        <p:password id="turkishFeedback" value="#{passwordView.password3}" feedback="true"
                    promptLabel="Ingresa tu contraseña" weakLabel="Débil"
                    goodLabel="Buena" strongLabel="Fuerte"/>

           
        <h5>Inline Feedback</h5>
        <p:password id="inlineFeedback" value="#{passwordView.password4}" feedback="true" inline="true"/>
    </h:form>
</div>

<div class="card">
    <h:form>
        <h5 class="p-mt-0">Match Passwords</h5>
        <div class="p-field p-grid">
            <p:outputLabel for="pwd1" styleClass="p-col-fixed" style="width:100px" value="Password"/>
            <div class="p-col">
                <p:password id="pwd1" value="#{passwordView.password5}" match="pwd2" label="Password 1" required="true"/>
            </div>
        </div>

        <div class="p-field p-grid">
            <p:outputLabel for="pwd2" styleClass="p-col-fixed" style="width:100px" value="Password"/>
            <div class="p-col">
                <p:password id="pwd2" value="#{passwordView.password5}" label="Password 2" required="true"/>
            </div>
        </div>

        <p:commandButton update="@form" value="Save"/>

        <p:messages id="messages" showDetail="true">
            <p:autoUpdate/>
        </p:messages>
    </h:form>
</div>