DataTable - Basic

DataTable displays data in tabular format.

Documentation Widget
IdYearBrandColor
56320e2c1987FiatBlue
c026e6071963AudiYellow
dabb6a981997AudiSilver
5b907c931967VolvoWhite
d093374e1989AudiYellow
22ec6ca01991AudiMaroon
806661971982BMWBlack
9be0a7af1998VolvoWhite
35a3b3e32004FiatGreen
96256eec1969VolvoRed
<p:dataTable var="car" value="#{dtBasicView.cars}">
    <p:column headerText="Id">
        <h:outputText value="#{car.id}" />
    </p:column>

    <p:column headerText="Year">
        <h:outputText value="#{car.year}" />
    </p:column>

    <p:column headerText="Brand">
        <h:outputText value="#{car.brand}" />
    </p:column>

    <p:column headerText="Color">
        <h:outputText value="#{car.color}" />
    </p:column>
</p:dataTable>

FREE THEMES

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

nova-light Nova-Light
nova-dark Nova-Dark
nova-colored Nova-Colored
luna-blue Luna-Blue
luna-amber Luna-Amber
luna-green Luna-Green
luna-pink Luna-Pink
omega Omega

PREMIUM TEMPLATES

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