I have .jspx template which has header, content and footer
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:tr="http://myfaces.apache.org/trinidad"
xmlns:rah="http://xmlns.oracle.com/webcenter/resourcehandler"
xmlns:wcdc="http://xmlns.oracle.com/webcenter/spaces/taglib">
and I have 2 properties files ar.properties and en.properties. in the footer I have a copyright message that will be displayed depending on the selected locale
so I've done that
<af:outputFormatted value=" جميع الحقوق محفوظة " rendered="#{facesContext.ELContext.locale eq 'ar'}" />
<af:outputFormatted value="all right reserved " rendered="#{facesContext.ELContext.locale eq 'en'}" />
and it work fine but this way isn't effiecient because i will have to duplicate every labael in the whole page
I tried to put
<c:set var="bundle" value="{#facesContext.ELContext.locale eq 'en' ? {adfBundle['com.en']} : {adfBundle['com.ar']}}" />
and used only one output label
<af:outputFormatted value="#{bundle.copyright}" />
but it gives me a warning that reference bundle is not found. how to fix this?