Recent Posts
Archives
Categories
Blog Stats
- 20,633 hits
Featured Blogs
Advertisements
Into the charm of Oracle Webcenter and ADF
The current portal language selector is a popup that shows the available languages to select from .
what if you need to create links or drop down with 2 languages only?!
you can use this code and pass the locale to the parameters
<af:commandLink styleClass="topNavLinks frlink" rendered="#{facesContext.externalContext.requestLocale eq 'en'}" partialSubmit="false" id="frlink" actionListener="#{o_w_wa_chooseLanguage.changeLanguage}" text="French"> <f:attribute name="wcLangId" value="fr"/> </af:commandLink> <af:commandLink styleClass="topNavLinks enlink" rendered="#{facesContext.externalContext.requestLocale eq 'fr'}" partialSubmit="false" id="enlink" actionListener="#{o_w_wa_chooseLanguage.changeLanguage}" text="English"> <f:attribute name="wcLangId" value="en"/> </af:commandLink>