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

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.

DataList Basic

DataList displays data in a list layout.

Basic
  1. true
    Product Description blabla ulöalala lalseerer
    Fitness
    $9.00 Out of Stock
  2. bbbbbbbbb
    Product Description
    Electronics
    $50.00 Out of Stock
  3. uiii
    Product Description
    Fitness
    $90.00 Low Stock
  4. Blue T-Shirt787
    Product Description
    Electronics
    $29.00 Out of Stock
  5. prueballl
    Product Description
    Accessories
    $6.00 Out of Stock
  6. Brow
    Product Description
    Accessories
    $125.00 Out of Stock
  7. Chakra Bracelet
    Product Description
    Accessories
    $32.00 Low Stock
  8. Galaxy Earrings
    Product Description
    Accessories
    $34.00 Low Stock
  9. Game Controller
    Product Description
    Electronics
    $10.00 In Stock
  10. Gaming Set
    Product Description
    Fitness
    $2.00 In Stock
Definition
Product Code: César
true
Product Description blabla ulöalala lalseerer
Fitness
$9.00 Out of Stock
Product Code: tesata
bbbbbbbbb
Product Description
Electronics
$50.00 Out of Stock
Product Code: zz21cz3c
uiii
Product Description
Fitness
$90.00 Low Stock
Product Code: 244wgerg2
Blue T-Shirt787
Product Description
Electronics
$29.00 Out of Stock
Product Code: h456wer53
prueballl
Product Description
Accessories
$6.00 Out of Stock
Product Info

<h:form id="form">

    <div class="product card">
        <h5>Basic</h5>
        <p:dataList value="#{dataListView.products1}" var="product" type="ordered">
            <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 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="#{dataListView.selectedProduct}"/>
                    </p:commandButton>
                    <span class="product-badge status-#{product.inventoryStatus.name().toLowerCase()}">#{product.inventoryStatus.text}</span>
                </div>
            </div>
        </p:dataList>
    </div>

    <div class="product card">
        <h5>Definition</h5>
        <p:dataList value="#{dataListView.products2}" var="product" type="definition">
            Product Code: #{product.code}
            <f:facet name="description">
                <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 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="#{dataListView.selectedProduct}"/>
                        </p:commandButton>
                        <span class="product-badge status-#{product.inventoryStatus.name().toLowerCase()}">#{product.inventoryStatus.text}</span>
                    </div>
                </div>
            </f:facet>
        </p:dataList>
    </div>

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

</h:form>