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.

KeyFilter

KeyFilter can be used to filter keyboard input on specified input components.

Number
Regex
AutoComplete with TestFunction

<div class="card">
    <h:form>
        <h5>Number</h5>
        <p:inputText>
            <p:keyFilter mask="num" />
        </p:inputText>

        <h5>Regex</h5>
        <p:inputText>
            <p:keyFilter regEx="/[ABC]/i"/>
        </p:inputText>

        <h5>AutoComplete with TestFunction</h5>
        <p:autoComplete id="autoComplete1" value="#{autoCompleteView.txt1}"
                        completeMethod="#{autoCompleteView.completeText}"/>

        <p:keyFilter for="autoComplete1" testFunction="return c == 'z';"/>
    </h:form>
</div>