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.

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.00AccessoriesBamboo WatchINSTOCK
Black Watch$72.00AccessoriesBlack WatchINSTOCK
Blue Band$79.00FitnessBlue BandLOWSTOCK
Blue T-Shirt$29.00ClothingBlue T-ShirtINSTOCK
Bracelet$15.00AccessoriesBraceletINSTOCK
Brown Purse$120.00AccessoriesBrown PurseOUTOFSTOCK
Chakra Bracelet$32.00AccessoriesChakra BraceletLOWSTOCK
Galaxy Earrings$34.00AccessoriesGalaxy EarringsINSTOCK
Game Controller$99.00ElectronicsGame ControllerLOWSTOCK
Gaming Set$299.00ElectronicsGaming SetINSTOCK

<div class="card">
    <h:form>
        <p:dataTable var="product" value="#{dtBasicView.products}" rowKey="#{product.id}">
            <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}">
                    <f:convertNumber type="currency" currencySymbol="$"/>
                </h:outputText>
            </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>

Session expired

Reloading page

Message:
StackTrace: