|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.davesag.jsf.MessageHelper
A helper class for loading application messages.
| Constructor Summary | |
MessageHelper()
|
|
| Method Summary | |
static ClassLoader |
getClassLoader()
get the ClassLoader for the current thread of failing that,
the default classloader. |
static Locale |
getLocale(javax.faces.context.FacesContext aContext)
get the Locale for the given context. |
static javax.faces.application.FacesMessage |
getMessage(String aBundleName,
String aResourceId,
Object[] params)
get a localised message from the given bundle, using the given key and params. |
static String |
getString(String aBundle,
String aResourceId,
Object[] params)
get a localised string from the given bundle, using the given key and params. |
static String |
getString(String aBundle1,
String aBundle2,
String aResourceId,
Locale aLocale,
ClassLoader aLoader,
Object[] params)
get a localised string from the given bundles, using the given key and params. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MessageHelper()
| Method Detail |
public static javax.faces.application.FacesMessage getMessage(String aBundleName,
String aResourceId,
Object[] params)
aBundleName - the fully qualified bundle name.aResourceId - the keyparams - an array of params
public static String getString(String aBundle,
String aResourceId,
Object[] params)
aBundle - the fully qualified bundle name.aResourceId - the keyparams - an array of params
public static String getString(String aBundle1,
String aBundle2,
String aResourceId,
Locale aLocale,
ClassLoader aLoader,
Object[] params)
aBundle1 - the first fully qualified bundle name.aBundle2 - the second fully qualified bundle name.aResourceId - the keyaLocale - the localeaLoader - the classloaderparams - an array of params
public static Locale getLocale(javax.faces.context.FacesContext aContext)
Locale for the given context.
aContext - a faces context
public static ClassLoader getClassLoader()
ClassLoader for the current thread of failing that,
the default classloader.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||