DataTable

Basic usage is same as standard datatable.

ModelYearManufacturerColor
d3d8aa791974AudiMaroon
6a837ebc1963VolvoBlack
37cd80ff1973ChryslerWhite
3462a7612007VolkswagenGreen
085d9d231976VolvoMaroon
ca7e9f6e1961RenaultGreen
4e4d66f81987AudiMaroon
2baf3b771982RenaultRed
d34820631967AudiBlack

Source

<h:form>
    <p:dataTable var="car" value="#{tableBean.carsSmall}">
        <p:column headerText="Model">
            <h:outputText value="#{car.model}" />
        </p:column>

        <p:column headerText="Year">
            <h:outputText value="#{car.year}" />
        </p:column>

        <p:column headerText="Manufacturer">
            <h:outputText value="#{car.manufacturer}" />
        </p:column>

        <p:column headerText="Color">
            <h:outputText value="#{car.color}" />
        </p:column>
    </p:dataTable>
</h:form>