Tree - RTL Tree has built-in support for RTL languages.
<p:tree value="#{treeIconView.root}" var="doc" dir="rtl">
    <p:treeNode expandedIcon="ui-icon-folder-open" collapsedIcon="ui-icon-folder-collapsed">
        <h:outputText value="#{doc.name}"/>
    </p:treeNode>

    <p:treeNode type="document" icon="ui-icon-document">
        <h:outputText value="#{doc.name}" />
    </p:treeNode>

    <p:treeNode type="picture" icon="ui-icon-image">
        <h:outputText value="#{doc.name}" />
    </p:treeNode>

    <p:treeNode type="mp3" icon="ui-icon-video">
        <h:outputText value="#{doc.name}" />
    </p:treeNode>
</p:tree>
                
PrimeTek, Copyright © 2017
All rights reserved.
Running PrimeFaces-6.2-SNAPSHOT on Mojarra-2.3.2.