Locale

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

Language
English
French
German
Italian
Korean
Spanish
Catalan
Dutch
Portuguese
Portuguese
Arabic
Czech
Greek
Persian
Hindi
Indonesian
Croatian
Japanese
Hungarian
Hebrew
Georgian
Lithuanian
Latvian
Norwegian
Polish
Romanian
Russian
Slovak
Slovenian
Serbian
Swedish
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

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.

DataGrid Basic

DataGrid displays data in a grid layout.

Products for Sale
Accessories
In Stock
Bamboo Watch
Product Description
$65.00
Clothing
In Stock
Shoes
Product Description
$64.00
Clothing
In Stock
Sneakers
Product Description
$78.00
Electronics
In Stock
Yellow Earbuds
Product Description
$89.00
Electronics
In Stock
Gaming Set
Product Description
$299.00
Fitness
In Stock
Yoga Set
Product Description
$20.00
Clothing
Low Stock
Teal T-Shirt
Product Description
$49.00
Electronics
Low Stock
Headphones
Product Description
$175.00
Fitness
In Stock
Lime Band
Product Description
$79.00
Fitness
In Stock
Yoga Set
Product Description
$20.00
Accessories
Out of Stock
Gold Phone Case
Product Description
$24.00
Accessories
In Stock
Bracelet
Product Description
$15.00

<div class="product card">
    <h:form id="form">
        <p:dataGrid var="product" value="#{dataGridView.products}" columns="3" layout="grid"
                    rows="12" paginator="true" id="cars"
                    paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                    rowsPerPageTemplate="6,12,16">

            <f:facet name="header">
                Products for Sale
            </f:facet>

            <div class="product-grid-item card" style="margin-bottom: 0">
                <div class="product-grid-item-top">
                    <div>
                        <i class="pi pi-tag product-category-icon"/>
                        <span class="product-category">#{product.category}</span>
                    </div>
                    <span class="product-badge status-#{product.inventoryStatus.name().toLowerCase()}">#{product.inventoryStatus.text}</span>
                </div>
                <div class="product-grid-item-content">
                    <p:graphicImage name="demo/images/product/#{product.image}"/>
                    <div class="product-name">#{product.name}</div>
                    <div class="product-description">#{product.description}</div>
                    <p:rating readonly="true" value="#{product.rating}"/>
                </div>
                <div class="product-grid-item-bottom">
                    <h:outputText value="#{product.price}" styleClass="product-price">
                        <f:convertNumber currencySymbol="$" type="currency"/>
                    </h:outputText>
                    <p:commandButton update=":form:productDetail" oncomplete="PF('productDialog').show()"
                                     value="Add To Cart"
                                     icon="pi pi-shopping-cart"
                                     disabled="#{product.inventoryStatus == 'OUTOFSTOCK'}">
                        <f:setPropertyActionListener value="#{product}"
                                                     target="#{dataGridView.selectedProduct}"/>
                    </p:commandButton>
                </div>
            </div>

        </p:dataGrid>

        <p:dialog header="Product Info" widgetVar="productDialog" modal="true" showEffect="fade"
                  hideEffect="fade"
                  resizable="false">
            <p:outputPanel id="productDetail" style="text-align:center;">
                <p:column rendered="#{not empty dataGridView.selectedProduct}">
                    <div class="product">
                        <div class="product-grid-item card" style="margin-bottom: 0">
                            <div class="product-grid-item-top">
                                <div>
                                    <i class="pi pi-tag product-category-icon"/>
                                    <span class="product-category">#{dataGridView.selectedProduct.category}</span>
                                </div>
                                <span class="product-badge status-#{dataGridView.selectedProduct.inventoryStatus.name().toLowerCase()}">#{dataGridView.selectedProduct.inventoryStatus.text}</span>
                            </div>
                            <div class="product-grid-item-content">
                                <p:graphicImage
                                        name="demo/images/product/#{dataGridView.selectedProduct.image}"/>
                                <div class="product-name">#{dataGridView.selectedProduct.name}</div>
                                <div class="product-description">#{dataGridView.selectedProduct.description}</div>
                                <p:rating readonly="true" value="#{dataGridView.selectedProduct.rating}"/>
                            </div>
                            <div class="product-grid-item-bottom">
                                <h:outputText value="#{dataGridView.selectedProduct.price}"
                                              styleClass="product-price">
                                    <f:convertNumber currencySymbol="$" type="currency"/>
                                </h:outputText>
                                <p:commandButton value="Add To Cart" icon="pi pi-shopping-cart"
                                                 disabled="#{dataGridView.selectedProduct.inventoryStatus == 'OUTOFSTOCK'}">
                                </p:commandButton>
                            </div>
                        </div>
                    </div>
                </p:column>
            </p:outputPanel>
        </p:dialog>
    </h:form>
</div>