DataTable - Basic DataTable displays data in tabular format.
IdYearBrandColor
56c7e43a2004FordOrange
5b1355fc1971AudiWhite
be79748a1997BMWOrange
8bab7c381985FiatMaroon
55e756b21993FiatRed
474cdade2008RenaultBrown
d4a7fc761987BMWSilver
0b39999f1992MercedesBlue
d264e7bf1988VolvoGreen
a86e0a311986FordBlue
<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 on Mojarra-2.3.2.