DataTable - Basic DataTable displays data in tabular format.
IdYearBrandColor
d2169b3c1990AudiBrown
f36e32291999BMWBlue
a5c553cf1983MercedesBrown
540262fd1993VolvoBlack
2d28905d1999MercedesBrown
7bcf25a62009AudiRed
45ac90231990VolvoOrange
af2537c21968FordBlue
e9c1c18c1995FiatBlue
fdbffbae1979VolkswagenOrange
<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.RC1 on Mojarra-2.3.2.