DataTable - Basic DataTable displays data in tabular format.
IdYearBrandColor
2cb871be1961RenaultGreen
e690f2f21984AudiYellow
8e2ca0f21976BMWRed
62d333e61984VolkswagenWhite
28ad0c861978MercedesWhite
9886ea591975HondaBlack
982a52c42007FiatBlack
3559ad451967JaguarRed
73aa8fe61969FiatRed
8e33ae431972BMWBlack
<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 © 2015
All rights reserved.
Running PrimeFaces-6.1-SNAPSHOT on Mojarra-2.2.8.