Locale

Language
English
English
English
French
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
Swedish
Thai
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

Input Style

Free Themes

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

Saga Saga
Vela Vela
Arya Arya

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

DataScroller Loading

The loading facet can be used to show UI while data is being loaded.

  • Grey T-Shirt
    Product Description
    Clothing
    $48.00 Out of Stock
  • Bracelet
    Product Description
    Accessories
    $15.00 In Stock
  • Gaming Set
    Product Description
    Electronics
    $299.00 In Stock
  • Sneakers
    Product Description
    Clothing
    $78.00 In Stock
  • Gold Phone Case
    Product Description
    Accessories
    $24.00 Out of Stock

<div class="product card">
    <h:form>
        <p:dataScroller widgetVar="ds" value="#{dataScrollerView.products}" var="product" chunkSize="5">
            <f:facet name="loading">
                <div class="product">
                    <div class="product-list-item p-5">
                        <p:skeleton height="100px" width="150px" style="margin-right:2rem"/>
                        <div class="product-list-detail">
                            <p:skeleton width="200px" height="34px" style="margin-bottom:14px"/>
                            <p:skeleton width="130px" height="17.5px" style="margin-bottom:7px"/>
                            <p:skeleton width="200px" height="14px"/>
                        </div>
                        <div class="product-list-action" style="width:120px">
                            <p:skeleton width="80px" height="24px" style="margin-bottom:7px;align-self:flex-end;"/>
                            <p:skeleton height="33px" style="margin-bottom:7px"/>
                            <p:skeleton height="21px"/>
                        </div>
                    </div>
                </div>
            </f:facet>

            <div class="product">
                <div class="product-list-item p-5">
                    <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"
                                         disabled="#{product.inventoryStatus == 'OUTOFSTOCK'}">
                        </p:commandButton>
                        <span class="product-badge status-#{product.inventoryStatus.statusName}">#{product.inventoryStatus.text}</span>
                    </div>
                </div>
            </div>

            <f:facet name="loader">
                <div class="text-center">
                    <p:commandButton type="button" value="More" icon="pi pi-refresh"/>
                </div>
            </f:facet>
        </p:dataScroller>
    </h:form>
</div>