public class LocaleController
extends java.lang.Object
implements java.io.Serializable
The LocaleController is responsible for keeping track of and changing the current application locale. The available languages are identified by the lowercase ISO 639 code appended to a resource bundle properties file ie: messages_es.properties. Languages can also have a country associated with them ie: messages_en_US.properties. If there is no resource bundle available or one language is available, making a selection is not necessary and the component will not be rendered.
| Constructor and Description |
|---|
LocaleController() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getApplicationLocales() |
java.lang.String |
getSessionLanguage() |
java.util.Locale |
getSessionLocale() |
boolean |
isMultipleLocales() |
void |
localeValueChange(javax.faces.event.ValueChangeEvent event)
Change the session locale.
|
void |
setApplicationLocales(java.util.ArrayList<javax.faces.model.SelectItem> applicationLocales) |
void |
setMultipleLocales(boolean multipleLocales) |
void |
setSessionLanguage(java.lang.String sessionLanguage) |
void |
setSessionLocale(java.util.Locale sessionLocale) |
public void localeValueChange(javax.faces.event.ValueChangeEvent event)
event - jsf value change event.public java.util.Locale getSessionLocale()
public void setSessionLocale(java.util.Locale sessionLocale)
public java.util.List getApplicationLocales()
public void setApplicationLocales(java.util.ArrayList<javax.faces.model.SelectItem> applicationLocales)
public java.lang.String getSessionLanguage()
public void setSessionLanguage(java.lang.String sessionLanguage)
public boolean isMultipleLocales()
public void setMultipleLocales(boolean multipleLocales)
Copyright 2025 ICEsoft Technologies Canada, Corp. All Rights Reserved.