Locale

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

Input Style

Free Themes

Built-in component themes created by the PrimeFaces Theme Designer.

PrimeOne Design

Saga Saga
Vela Vela
Arya Arya

Premium Themes

Premium themes are only available exclusively for PrimeFaces Theme Designer subscribers and therefore not included in PrimeFaces core.

Bootstrap light blue and dark blue themes are also included in PrimeFaces 10.x builds for Elite subscribers.

bootstrap4-blue-light Bootstrap Blue
bootstrap4-purple-light Bootstrap Purple
bootstrap4-blue-dark Bootstrap Blue
bootstrap4-purple-dark Bootstrap Purple

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.

SelectManyCheckbox

SelectManyCheckbox is used to choose multiple items from a collection.

Basic Layout
Grid Layout
Responsive
Custom Layout
Grouped

<style type="text/css">
    .grid-checkbox td {
        padding: .5rem;
    }
</style>

<div class="card">
    <h:form>
        <h5 style="margin-top:0px">Basic Layout</h5>
        <p:selectManyCheckbox id="basic" value="#{checkboxView.selectedOptions}">
            <f:selectItem itemLabel="Option 1" itemValue="Option 1"/>
            <f:selectItem itemLabel="Option 2" itemValue="Option 2"/>
            <f:selectItem itemLabel="Option 3" itemValue="Option 3"/>
        </p:selectManyCheckbox>

        <h5>Grid Layout</h5>
        <p:selectManyCheckbox id="grid" value="#{checkboxView.selectedCities}" layout="grid" columns="3" styleClass="grid-checkbox">
            <f:selectItems value="#{checkboxView.cities}" var="city" itemLabel="#{city}" itemValue="#{city}"/>
        </p:selectManyCheckbox>

        <h5>Responsive</h5>
        <p:selectManyCheckbox id="grid2" value="#{checkboxView.selectedCities2}" layout="responsive"
                              columns="3">
            <f:selectItems value="#{checkboxView.cities}" var="city" itemLabel="#{city}" itemValue="#{city}"/>
        </p:selectManyCheckbox>

        <h5>Custom Layout</h5>
        <p:outputPanel id="customPanel">
            <p:selectManyCheckbox id="custom" value="#{checkboxView.selectedOptions2}" layout="custom">
                <f:selectItem itemLabel="Option 1" itemValue="Option 1"/>
                <f:selectItem itemLabel="Option 2" itemValue="Option 2"/>
                <f:selectItem itemLabel="Option 3" itemValue="Option 3"/>
            </p:selectManyCheckbox>

            <div class="p-grid p-text-center">
                <div class="p-col">
                    <p:outputLabel for="opt1" value="Option 1" styleClass="p-d-block p-mb-2"/>
                    <p:checkbox id="opt1" for="custom" itemIndex="0"/>
                </div>
                
                <div class="p-col">
                    <p:outputLabel for="opt2" value="Option 2" styleClass="p-d-block p-mb-2"/>
                    <p:checkbox id="opt2" for="custom" itemIndex="1"/>
                </div>

                <div class="p-col">
                    <p:outputLabel for="opt3" value="Option 3" styleClass="p-d-block p-mb-2"/>
                    <p:checkbox id="opt3" for="custom" itemIndex="2"/>
                </div>
            </div>
        </p:outputPanel>

        <h5>Grouped</h5>
        <p:selectManyCheckbox id="grid3" value="#{checkboxView.selectedCountries}" layout="pageDirection"
                              columns="1" styleClass="grid-checkbox">
            <f:selectItems value="#{checkboxView.countries}" var="country" itemLabel="#{country}"
                           itemValue="#{country}"/>
        </p:selectManyCheckbox>
    </h:form>
</div>