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
Czech
Greek
Persian
Finnish
Danish
Hindi
Indonesian
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
Vietnamese
Chinese
Chinese

Input Style

Themes

PrimeOne
Saga Saga
Vela Vela
Arya Arya
Bootstrap
bootstrap4-blue-light Bootstrap Blue
bootstrap4-purple-light Bootstrap Purple
bootstrap4-blue-dark Bootstrap Blue
bootstrap4-purple-dark Bootstrap Purple
Material Design
material-indigo-light Indigo
material-deeppurple-light' Deep Purple
material-indigo-dark Indigo
material-deeppurple-dark' Deep Purple
Material Design Compact
material-indigo-light Indigo
material-deeppurple-light' Deep Purple
material-indigo-dark Indigo
material-deeppurple-dark' Deep Purple

SelectCheckboxMenu

SelectCheckboxMenu is used to choose multiple items displayed in an overlay.

Basic
Multiple
    Grouped
      Advanced
        
        <div class="card">
            <h:form>
                <p:growl>
                    <p:autoUpdate/>
                </p:growl>
        
                <h5 class="mt-0">Basic</h5>
                <p:selectCheckboxMenu id="menu"
                                      dynamic="true"
                                      filter="true" filterMatchMode="startsWith"
                                      label="Cities" updateLabel="true"
                                      selectedLabel="Cities Selected"
                                      style="width: 15rem" panelStyle="width: 15rem" scrollHeight="250"
                                      value="#{checkboxView.selectedCities}">
                    <f:selectItems value="#{checkboxView.cities}"/>
        
                    <f:facet name="footer">
                        <p:divider styleClass="mt-0" />
                        <h:outputText value="#{checkboxView.cities.size()} cities"
                                      styleClass="py-1 block font-bold"/>
                    </f:facet>
                </p:selectCheckboxMenu>
        
                <h5>Multiple</h5>
                <p:selectCheckboxMenu id="multiple"
                                      multiple="true" emptyLabel="Please select..." updateLabel="true"
                                      style="min-width: 15rem" panelStyle="width: 30rem" scrollHeight="250"
                                      value="#{checkboxView.selectedCities2}">
                        <p:ajax event="toggleSelect" listener="#{checkboxView.onToggleSelect}"/>
                        <p:ajax event="itemSelect" listener="#{checkboxView.onItemSelect}"/>
                        <p:ajax event="itemUnselect" listener="#{checkboxView.onItemUnselect}"/>
                        <f:selectItems value="#{checkboxView.cities}"/>
                    </p:selectCheckboxMenu>
        
                <h5>Grouped</h5>
                <p:selectCheckboxMenu id="grouped"
                                      filter="true" filterMatchMode="startsWith"
                                      multiple="true"
                                      style="width: 15rem" panelStyle="width: 15rem" scrollHeight="250"
                                      value="#{checkboxView.selectedCountries}">
                    <f:selectItems value="#{checkboxView.countries}"/>
                </p:selectCheckboxMenu>
        
                <h5>Advanced</h5>
                <p:selectCheckboxMenu id="advanced"
                                      converter="#{countryConverter}"
                                      filter="true" filterMatchMode="startsWith" filterNormalize="true"
                                      multiple="true"
                                      scrollHeight="250"
                                      value="#{checkboxView.selectedCountries2}"
                                      var="c"
                                      style="min-width: 15rem">
                    <f:selectItems value="#{checkboxView.countries2}"/>
        
                    <p:column style="width:10%">
                        <span class="flag flag-#{c.code}" style="width: 30px; height: 20px"/>
                    </p:column>
        
                    <p:column>
                        <f:facet name="header">
                            <h:outputText value="Name"/>
                        </f:facet>
                        <h:outputText value="#{c.name}"/>
                    </p:column>
        
                    <f:facet name="footer">
                        <h:outputText value="#{checkboxView.countries2.size()} countries"
                                      styleClass="py-1 block font-bold"/>
                    </f:facet>
                </p:selectCheckboxMenu>
            </h:form>
        </div>