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

DataTable Responsive

DataTable has two responsive modes. In priority mode, visibility of columns are toggled based on the screen size and their priority (1-6). On the other hand in reflow mode, columns are displayed as stacked on smaller screens.

Column Priority
CodeName (p3)Category (p2)Price (p4)
f230fh0g3Bamboo WatchAccessories$65.0
nvklal433Black WatchAccessories$72.0
zz21cz3c1Blue BandFitness$79.0
244wgerg2Blue T-ShirtClothing$29.0
h456wer53BraceletAccessories$15.0
av2231fwgBrown PurseAccessories$120.0
bib36pfvmChakra BraceletAccessories$32.0
mbvjkgip5Galaxy EarringsAccessories$34.0
vbb124btrGame ControllerElectronics$99.0
cm230f032Gaming SetElectronics$299.0
Reflow

<h:form>

    <div class="card">
        <h5 style="margin-top:0">Column Priority</h5>
        <p:dataTable var="product" value="#{dtBasicView.products}">
            <p:column headerText="Code">
                <h:outputText value="#{product.code}"/>
            </p:column>

            <p:column headerText="Name (p3)" responsivePriority="3">
                <h:outputText value="#{product.name}"/>
            </p:column>

            <p:column headerText="Category (p2)" responsivePriority="2">
                <h:outputText value="#{product.category}"/>
            </p:column>

            <p:column headerText="Price (p4)" responsivePriority="4">
                <h:outputText value="$#{product.price}"/>
            </p:column>
        </p:dataTable>
    </div>

    <div class="card">
        <h5>Reflow</h5>
        <p:dataTable var="product" value="#{dtBasicView.products}" reflow="true" rows="5" paginator="true">
            <p:column headerText="Code">
                <h:outputText value="#{product.code}"/>
            </p:column>

            <p:column headerText="Name">
                <h:outputText value="#{product.name}"/>
            </p:column>

            <p:column headerText="Category">
                <h:outputText value="#{product.category}"/>
            </p:column>

            <p:column headerText="Price">
                <h:outputText value="$#{product.price}"/>
            </p:column>
        </p:dataTable>
    </div>

</h:form>