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.

DataTable Display Priority

Columns can be given a default display priority for ordering of the columns.

Name (dp0)Code (dp1)Quantity (dp5)Category (dp8)
Bamboo Watch f230fh0g3 24 Accessories
Black Watch nvklal433 61 Accessories
Blue Band zz21cz3c1 2 Fitness
Blue T-Shirt 244wgerg2 25 Clothing
Bracelet h456wer53 73 Accessories
Brown Purse av2231fwg 0 Accessories
Chakra Bracelet bib36pfvm 5 Accessories
Galaxy Earrings mbvjkgip5 23 Accessories
Game Controller vbb124btr 2 Electronics
Gaming Set cm230f032 63 Electronics

<div class="card">
    <h:form id="form">

        <p:dataTable var="product" value="#{dtReorderView.products1}">
            <p:column headerText="Code (dp1)" displayPriority="1">
                #{product.code}
            </p:column>

            <p:column headerText="Name (dp0)" draggable="false" displayPriority="0">
                #{product.name}
            </p:column>

            <p:column headerText="Category (dp8)" displayPriority="8">
                #{product.category}
            </p:column>

            <p:column headerText="Quantity (dp5)" displayPriority="5">
                #{product.quantity}
            </p:column>
        </p:dataTable>
    </h:form>
</div>