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.

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.

DataTable RowExpansion

A row can be expanded to display detail content using a row expansion column and expansion facet.

Expand rows to see detailed information
NameImagePriceCategoryReviewsStatus
Bamboo Watch$65.0AccessoriesBamboo WatchINSTOCK
Black Watch$72.0AccessoriesBlack WatchINSTOCK
Blue Band$79.0FitnessBlue BandLOWSTOCK
Blue T-Shirt$29.0ClothingBlue T-ShirtINSTOCK
Bracelet$15.0AccessoriesBraceletINSTOCK
Brown Purse$120.0AccessoriesBrown PurseOUTOFSTOCK
Chakra Bracelet$32.0AccessoriesChakra BraceletLOWSTOCK
Galaxy Earrings$34.0AccessoriesGalaxy EarringsINSTOCK
Game Controller$99.0ElectronicsGame ControllerLOWSTOCK
Gaming Set$299.0ElectronicsGaming SetINSTOCK

<div class="card">
    <h:form>
        <p:dataTable var="product" value="#{dtBasicView.products}">
            <f:facet name="header">
                Expand rows to see detailed information
            </f:facet>
            <p:column style="width:2rem">
                <p:rowToggler/>
            </p:column>

            <p:column headerText="Name">
                <h:outputText value="#{product.name}"/>
            </p:column>

            <p:column headerText="Image">
                <p:graphicImage name="demo/images/product/#{product.image}" styleClass="p-shadow-2" width="100"/>
            </p:column>

            <p:column headerText="Price">
                <h:outputText value="$#{product.price}"/>
            </p:column>

            <p:column headerText="Category">
                <h:outputText value="#{product.category}"/>
            </p:column>

            <p:column headerText="Reviews">
                <h:outputText value="#{product.name}"/>
            </p:column>

            <p:column headerText="Status">
                <h:outputText value="#{product.inventoryStatus}"/>
            </p:column>

            <p:rowExpansion>
                <div class="product">
                    <div class="product-list-item">
                        <p:graphicImage name="demo/images/product/#{product.image}"/>
                        <div class="product-list-detail">
                            <div class="product-name">#{product.name}</div>
                            <div class="product-description">#{product.description}</div>
                            <p:rating readonly="true" value="#{product.rating}"/>
                            <i class="pi pi-tag product-category-icon"/><span
                                class="product-category">#{product.category}</span>
                        </div>
                        <div class="product-list-action">
                            <h:outputText value="#{product.price}" styleClass="product-price">
                                <f:convertNumber currencySymbol="$" type="currency"/>
                            </h:outputText>
                            <p:commandButton value="Add To Cart" icon="pi pi-shopping-cart" type="button"
                                             disabled="#{product.inventoryStatus == 'OUTOFSTOCK'}">
                            </p:commandButton>
                            <span class="product-badge status-#{product.inventoryStatus.name().toLowerCase()}">#{product.inventoryStatus.text}</span>
                        </div>
                    </div>
                </div>
            </p:rowExpansion>
        </p:dataTable>
    </h:form>
</div>