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.

CascadeSelect

CascadeSelect displays a nested structure of options.

Basic
Custom Content

<div class="card">
    <h:form>
        <p:growl id="message" showDetail="true"/>

        <h5>Basic</h5>
        <p:cascadeSelect value="#{cascadeSelectView.selection}" style="min-width: 14rem" placeholder="Select a City">
            <p:ajax event="itemSelect" listener="#{cascadeSelectView.onItemSelect}" update="message" />
            <f:selectItems value="#{cascadeSelectView.countries}"/>
        </p:cascadeSelect>
        
        <h5>Custom Content</h5>
        <p:cascadeSelect value="#{cascadeSelectView.selection2}" style="min-width: 14rem" placeholder="Select a City" var="place">
            <p:ajax event="itemSelect" listener="#{cascadeSelectView.onItemSelect}" update="message" />
            <f:selectItems value="#{cascadeSelectView.countries}"/>
            
            <f:facet name="content">
                <div class="country-item cascadeselect-item">
                    <h:panelGroup styleClass="flag flag-#{place.code}" rendered="#{place.status == 'country'}"></h:panelGroup>
                    <h:panelGroup styleClass="pi pi-compass p-mr-2" rendered="#{place.status == 'states'}"></h:panelGroup>
                    <h:panelGroup styleClass="pi pi-map-marker p-mr-2" rendered="#{place.status == 'city'}"></h:panelGroup>
                    <span>#{place.name}</span>
                </div>
            </f:facet>
        </p:cascadeSelect>
    </h:form>
</div>