Package de.xima.fc.gui.common.utils.msg
Class I18nUtils
java.lang.Object
de.xima.fc.gui.common.utils.msg.I18nUtils
- Direct Known Subclasses:
MessageUtils
,PluginWrapperModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic javax.faces.context.FacesContext
Deprecated.static Locale
Deprecated.static String
Methode zum Auflösen eines i18n-Keys zum aktuellen Wert Zusätzlich werden Ersetzungen mittels der übergebenen Parameter (1..n) durchgeführt.static String
static String
static String
static String
rbValueOrDefault
(Locale loc, String key, String defaultValue, Object... params)
-
Constructor Details
-
I18nUtils
public I18nUtils()
-
-
Method Details
-
rbValue
Methode zum Auflösen eines i18n-Keys zum aktuellen Wert Zusätzlich werden Ersetzungen mittels der übergebenen Parameter (1..n) durchgeführt. Das Ersetzungs-Pattern im hinterlegten i18n-Wert muss folgendermaßen sein: {0} ... {n} -
rbValue
-
rbValueOrDefault
-
rbValue
-
rbValueOrDefault
-
getLocale
Deprecated.Gets the locale from the current Faces context, or the default locale when no Faces context is active.- Returns:
- The locale from the current Faces context, or the default locale if no Faces context is active.
-
getFacesContext
Deprecated.UseFaces.getContext()
Gets the current Faces context, which requires that the current thread is currently processing an HTTP request to the Faces servlet.- Returns:
- The current Faces context,
null
if no such context exists.
-
Faces.getContext()