DataTable - Basic DataTable displays data in tabular format.
IdYearBrandColor
6a8876a31970VolvoMaroon
de2ac0cf1992MercedesRed
959f48df1997RenaultOrange
fecf6d6c2008JaguarRed
b5e6b18a2005BMWGreen
05b3927f1973AudiOrange
de2c2f451978MercedesBlue
2a4439891993JaguarBrown
50aa73911996VolkswagenOrange
b95d3aef1992VolvoGreen
<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.