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.

Menu

Menu is a navigation component with one level of submenus.

Inline
Overlay
Programmatic
Toggleable

<h:form>
    <p:growl id="messages" showDetail="false"/>

    <div class="card">
        <h5>Inline</h5>
        <p:menu>
            <p:submenu label="Ajax">
                <p:menuitem value="Save" action="#{menuView.save}" update="messages" icon="pi pi-save"/>
                <p:menuitem value="Update" action="#{menuView.update}" update="messages" icon="pi pi-refresh"/>
            </p:submenu>
            <p:submenu label="Non-Ajax">
                <p:menuitem value="Delete" action="#{menuView.delete}" update="messages" ajax="false"
                            icon="pi pi-times"/>
            </p:submenu>
            <p:submenu label="Navigations">
                <p:menuitem value="External" url="http://www.primefaces.org" icon="pi pi-home"/>
                <p:menuitem value="Internal" icon="pi pi-star"/>
            </p:submenu>
        </p:menu>
    </div>

    <div class="card">
        <h5>Overlay</h5>
        <p:commandButton id="dynaButton" value="Show" type="button" icon="pi pi-bars"/>
        <p:menu overlay="true" trigger="dynaButton" my="left top" at="left bottom">
            <p:submenu label="Ajax">
                <p:menuitem value="Save" action="#{menuView.save}" update="messages" icon="pi pi-save"/>
                <p:menuitem value="Update" action="#{menuView.update}" update="messages" icon="pi pi-refresh"/>
            </p:submenu>
            <p:submenu label="Non-Ajax">
                <p:menuitem value="Delete" action="#{menuView.delete}" update="messages" ajax="false"
                            icon="pi pi-times"/>
            </p:submenu>
            <p:submenu label="Navigations">
                <p:menuitem value="External" url="http://www.primefaces.org" icon="pi pi-home"/>
                <p:menuitem value="Internal" icon="pi pi-star"/>
            </p:submenu>
        </p:menu>
    </div>

    <div class="card">
        <h5>Programmatic</h5>
        <p:menu model="#{menuView.model}"/>
    </div>

    <div class="card">
        <h5>Toggleable</h5>
        <p:menu toggleable="true">
            <p:submenu label="Ajax">
                <p:menuitem value="Save" action="#{menuView.save}" update="messages" icon="pi pi-save"/>
                <p:menuitem value="Update" action="#{menuView.update}" update="messages" icon="pi pi-refresh"/>
            </p:submenu>
            <p:submenu label="Non-Ajax">
                <p:menuitem value="Delete" action="#{menuView.delete}" update="messages" ajax="false"
                            icon="pi pi-times"/>
            </p:submenu>
            <p:submenu label="Navigations">
                <p:menuitem value="External" url="http://www.primefaces.org" icon="pi pi-home"/>
                <p:menuitem value="Internal" icon="pi pi-star"/>
            </p:submenu>
        </p:menu>
    </div>

</h:form>