• Settings
    • Locale
    • Change the locale of the datepicker, schedule and client side validation messages.

      Language
      English
      English
      English
      French
      German
      German
      German
      Italian
      Korean
      Spanish
      Catalan
      Dutch
      Portuguese
      Portuguese
      Arabic
      Arabic
      Bulgarian
      Bangla
      Bosnian
      Czech
      Greek
      Estonian
      Persian
      Finnish
      Danish
      Hindi
      Indonesian
      Icelandic
      Croatian
      Japanese
      Hungarian
      Hebrew
      Georgian
      Central Kurdish
      Khmer
      Kyrgyz
      Kazakh
      Lithuanian
      Latvian
      Malay
      Norwegian
      Polish
      Romanian
      Russian
      Slovak
      Slovenian
      Serbian
      Serbian
      Swedish
      Thai
      Turkish
      Ukrainian
      Uzbek
      Vietnamese
      Chinese
      Chinese
  • Resources

CascadeSelect

CascadeSelect displays a nested structure of options.

CascadeSelect Tag Documentation

CascadeSelect displays a nested structure of options.

NameTypeRequiredDefaultDescription
id String false generated Unique identifier of the component in a namingContainer.
rendered boolean false true Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding UIComponent false generated An EL expression referring to a server side UIComponent instance in a backing bean.
widgetVar String false generated ('widget_' + componentClientId) Name of the client side widget.
appendTo String false @(body) Appends the overlay to the element defined by search expression.
ariaDescribedBy String false The aria-describedby attribute is used to define a component id that describes the current element for accessibility.
ariaLabelledBy String false
converter Converter false EL expression resolves to a converter instance or literal converter ID defining a component converter.
converterMessage String false
disabled boolean false false Disables or enables the component.
group String false
hideNoSelectionOption boolean false false Flag indicating that, if this component is activated by the user, The "no selection option", if any, must be hidden.
immediate boolean false false When set true, process validations logic is executed at apply request values phase for this component.
placeholder String false The placeholder attribute specifies a short hint that describes the expected value of an input field.
readonly boolean false false Flag indicating that this component will prevent changes by the user.
required boolean false false Marks component as required.
requiredMessage String false
style String false Inline style of the component.
styleClass String false Style class of the component.
submittedValue Object false
tabindex String false Position in the tabbing order.
validator Validator false A method expression referring to a method validating the input.
validatorMessage String false
value Object false Value of the component.
valueChangeListener ValueChangeListener false A method binding expression referring to a method for handling a valuchangeevent.
var String false Name of the iterator variable that references each element in the data set.
Loading...
Tag DocumentationNew DocumentationNew Documentation JSDoc
Basic
Custom Content

Usage


<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 mr-2" rendered="#{place.status == 'states'}"></h:panelGroup>
                    <h:panelGroup styleClass="pi pi-map-marker mr-2" rendered="#{place.status == 'city'}"></h:panelGroup>
                    <span>#{place.name}</span>
                </div>
            </f:facet>
        </p:cascadeSelect>
    </h:form>
</div>