DataTable - Basic DataTable displays data in tabular format.
IdYearBrandColor
ef6c822e1977MercedesMaroon
307dbbf31962RenaultMaroon
1dd85fce1973VolkswagenBlack
cab80fb91969AudiYellow
fef736af1965FordYellow
b9e6e28f1997VolvoMaroon
91e4f7d72008VolvoBlue
b006a0181967MercedesRed
a9549e3b1966AudiBrown
ea7294271985VolkswagenGreen
<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.0.16 on Mojarra-2.2.8.