DataTable - Basic DataTable displays data in tabular format.
IdYearBrandColor
f0ca94881974VolkswagenGreen
2b4a796c1984FiatBrown
0928046b2004JaguarBlack
9b386b361969BMWMaroon
5e2b84d01973AudiSilver
8866689c1964FordOrange
1409ee061970VolkswagenOrange
b4fc9f891996HondaOrange
bf848a9f1967JaguarOrange
ac80d8e72002VolvoMaroon
<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.