I have a page template that in webcenter portal with footer with 2 output text which will be rendered depending on the selected language from the language task flow.
I have custom template which I've created with the jdeveloper and had put the follwing output label:
<af:outputFormatted id ="copyright" rendered="# {facesContext.externalContext.requestLocale} eq 'en'" value="the english text" />
<af:outputFormatted id ="copyright" rendered="#{facesContext.externalContext.requestLocale} eq 'ar'" value="the arabic text" />
And this El expression always return false so how to render this components depending on the selected language?
The issue is that you are closing your el expression too soon ("requestLocale }") . To fix it, replace :
by
Or, as an alternative solution, you can have only one outputFormatted with all values like this :
However if you are looking for a translation functionnality in ADF you should go for a translation bundle file as explain in the documentation here : https://docs.oracle.com/cd/E15051_01/web.1111/b31973/af_global.htm#ADFUI425