DataTable - Basic DataTable displays data in tabular format.
IdYearBrandColor
0fa7b22c1982JaguarYellow
54a779d31980HondaBrown
e47809091998BMWBlue
9f73de4a1972HondaBlue
230e8eac2001AudiBlue
13122aeb1989AudiBlue
9232afcc1976FiatGreen
f31714691970FordBlue
c9a7e4431997BMWWhite
f9a832821966RenaultOrange
<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>
                
PrimeTek, Copyright © 2017
All rights reserved.
Running PrimeFaces-6.2-SNAPSHOT on Mojarra-2.3.2.