DataTable - Basic DataTable displays data in tabular format.
IdYearBrandColor
22ec12032007JaguarYellow
70d93b571967VolvoWhite
1a5c84eb2001HondaWhite
6fa4a1761992FiatBrown
57132f332005RenaultYellow
619458331975FordSilver
9422bb1f2007RenaultBrown
4ce908cf1993MercedesOrange
5cae7a3d1993BMWSilver
8b09259a1982HondaBlack
<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.