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.

Hotkey

Hotkey is used to bind a key or a key combination to an client side or server side event via ajax. In first example use "left" and "right" keys to switch images and in second example you can do an ajax request with the (ctrl+shift+s) combination.

ImageSwitch Integration (Left-Right)
Ajax Hotkey (ctrl + shift + s)

<div class="card">
    <h:form>
        <h5 class="p-mt-top">ImageSwitch Integration (Left-Right)</h5>
        <p:imageSwitch effect="fade" widgetVar="switcher" slideshowAuto="false">
            <p:graphicImage name="demo/images/nature/nature1.jpg"/>
            <p:graphicImage name="demo/images/nature/nature2.jpg"/>
            <p:graphicImage name="demo/images/nature/nature3.jpg"/>
            <p:graphicImage name="demo/images/nature/nature4.jpg"/>
        </p:imageSwitch>
    
        <p:hotkey bind="left" handler="PF('switcher').previous()"/>
        <p:hotkey bind="right" handler="PF('switcher').next()"/>

        <h5>Ajax Hotkey (ctrl + shift + s)</h5>
        <p:growl id="msgs" showDetail="true" skipDetailIfEqualsSummary="true"/>

        <p:hotkey bind="ctrl+shift+s" update="msgs" action="#{hotkeyView.save}"/>

        <h:panelGrid columns="2" cellpadding="7">
            <p:outputLabel for="text" value="Text"/>
            <p:inputText id="text" value="#{hotkeyView.text}"/>
        </h:panelGrid>
    </h:form>
</div>