|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlocal.tomas.faces.FacesSession
public abstract class FacesSession
Abstract base class for JSF session.
| Constructor Summary | |
|---|---|
protected |
FacesSession()
Default constructor. |
| Method Summary | |
|---|---|
void |
addLocalizedMessage(String key)
Add localized message to current faces context instance. |
void |
addLocalizedMessage(String id,
String key)
Add localized message to current faces context instance. |
void |
addLocalizedMessage(String id,
String key,
Object arg)
Add localized messsage with one argument to current faces context instance. |
void |
addLocalizedMessage(String id,
String key,
Object[] args)
Add localized messsage with arguments to current faces context instance. |
void |
addLocalizedMessage(String id,
String key,
Object arg1,
Object arg2)
Add localized messsage with two arguments to current faces context instance. |
void |
addMessage(javax.faces.context.FacesContext context,
String id,
String message)
Add message to faces context. |
void |
addNativeMessage(String message)
Add message to current faces context instance. |
void |
addNativeMessage(String id,
String message)
Add message to current faces context instance. |
protected Locale |
determineLocale(javax.faces.context.FacesContext context)
Try to determine locale from FacesContext. |
Locale |
getDefaultLocale()
Try to determine locale from current FacesContext instance. |
Locale |
getLocale()
Get locale of current FacesContext instance. |
String |
getLocalizedMessage(javax.faces.context.FacesContext context,
Locale locale,
String key)
Get localized message from application bundle. |
String |
getLocalizedMessage(javax.faces.context.FacesContext context,
String key)
Get localized message from application bundle. |
static FacesSession |
getSession(String name)
Get named faces session. |
static Object |
resolveVariable(String name)
Resolve JSF variable by name. |
void |
setLocale(Locale locale)
Set locale. |
void |
setRequestAttribute(String name,
Object value)
Set request attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected FacesSession()
| Method Detail |
|---|
protected Locale determineLocale(javax.faces.context.FacesContext context)
context - the context
public Locale getDefaultLocale()
public Locale getLocale()
public void setLocale(Locale locale)
locale - The locale
public void addMessage(javax.faces.context.FacesContext context,
String id,
String message)
context - faces contextid - the message idmessage - the message text
public void addNativeMessage(String id,
String message)
id - the message idmessage - the message textpublic void addNativeMessage(String message)
message - the message text
public String getLocalizedMessage(javax.faces.context.FacesContext context,
Locale locale,
String key)
context - faces contextlocale - locale used to retrieve messagekey - message key
public String getLocalizedMessage(javax.faces.context.FacesContext context,
String key)
context - faces contextkey - message key
public void addLocalizedMessage(String id,
String key)
id - message idkey - message keypublic void addLocalizedMessage(String key)
key - message key
public void addLocalizedMessage(String id,
String key,
Object[] args)
id - message idkey - message keyargs - message arguments
public void addLocalizedMessage(String id,
String key,
Object arg)
id - message idkey - message keyarg - argument
public void addLocalizedMessage(String id,
String key,
Object arg1,
Object arg2)
id - message idkey - message keyarg1 - argument 1arg2 - argument 2public static Object resolveVariable(String name)
name - variable name
public static FacesSession getSession(String name)
name - session name
public void setRequestAttribute(String name,
Object value)
name - attribute namevalue - attribute value
|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||