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
Understanding Liferay Faces Portal
Liferay Faces Alloy UI Components