Change the text direction
<!-- This setting will change the text direction globally -->
<context-param>
<param-name>primefaces.DIR</param-name>
<param-value>rtl</param-value>
</context-param>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:p="http://primefaces.org/ui"
template="/templates/masterLayout.xhtml">
<ui:define name="chapterItem">
<h3 style="margin-top:0">Right to left language support</h3>
<p:commandButton value="Show Dialog" onclick="PF('arabicDlg').show();" type="button" />
<p:dialog widgetVar="arabicDlg" dir="rtl">
<h:outputText value="PrimeFaces هو مصدر للمساهمة في المشروع المكون جناح مفتوح مع الملحقات المختلفة." />
</p:dialog>
</ui:define>
</ui:composition>