DataTable - RTL

DataTable has built-in support for RTL languages..

IdYearBrandColor
f39b2f331980MercedesBrown
961c08871998VolkswagenWhite
5426d8cf1995JaguarWhite
429e2f881985AudiYellow
5af55a9e1998JaguarBlack
17ba6a8e1989FordWhite
f757db781962VolkswagenBrown
4e6f2f322005HondaGreen
dbbc1d401970BMWSilver
780eb5fe1971BMWWhite
<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>