DataTable - RTL

DataTable has built-in support for RTL languages..

IdYearBrandColor
2ece77881992MercedesBrown
b02e1a101961FordWhite
503bdb191963VolkswagenYellow
58bc529e1977BMWRed
a8f32a7f1991MercedesBlue
2918f12b1973VolkswagenBrown
7dec9f871988RenaultMaroon
ae3b37101975JaguarGreen
0ebecd841996FordSilver
fc1195f81978VolvoMaroon
<p:dataTable var="car" value="#{dtBasicView.cars}" dir="rtl">
    <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>