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


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

ContextMenu Target

ContextMenu can be attached to any component, right-click on ImageSwitch component for options.

<div class="card">
    <p:imageSwitch id="images" effect="fade" widgetVar="gallery" slideshowAuto="false" styleClass="p-shadow-4">
        <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:contextMenu for="images">
        <p:menuitem value="Prev" url="javascript:void(0)" onclick="PF('gallery').previous()"
                    icon="pi pi-chevron-left"/>
        <p:menuitem value="Next" url="javascript:void(0)" onclick="PF('gallery').next()"
                    icon="pi pi-chevron-right"/>
        <p:menuitem value="Remove" url="javascript:void(0)" onclick="PF('gallery').getJQ().fadeOut()"
                    icon="pi pi-times"/>