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!

Related Topics

Localizing JSF Portlets

Understanding Liferay Faces Portal

Liferay Faces Alloy UI Components

Understanding Liferay Faces Alloy

Liferay Faces Bridge UI Components

0 (0 Votes)
Leveraging the Current Theme with Liferay Faces Portal Previous