Leveraging the Portal User's Locale with Liferay Faces Portal

By default, the Locale that is normally used to present internationalized JSF views is based on the web-browser’s locale settings. In order to use the portal user’s language preference, Liferay Faces Portal automatically registers the LiferayLocalePhaseListener. This phase listener modifies the locale inside the UIViewRoot, based on the user’s language preference, which is accessed via the User.getLocale method.

Now you’re familiar with another key utility that you can access through Liferay Faces Portal. Awesome!

Localizing JSF Portlets

Understanding Liferay Faces Portal

Liferay Faces Alloy UI Components

Understanding Liferay Faces Alloy

Liferay Faces Bridge UI Components

« Leveraging the Current Theme with Liferay Faces PortalDynamically Adding JSF Portlets to Liferay Portal »
Este artigo foi útil?
Utilizadores que acharam útil: 0 de 0