|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.davesag.jsf.AbstractContextAwareBean
The AbstractContextAwareBean provides a bunch of handy methods
that your own managed beans can use.
| Constructor Summary | |
AbstractContextAwareBean()
|
|
| Method Summary | |
protected void |
addMessage(javax.faces.application.FacesMessage.Severity severity,
String messageKey,
Object[] params)
add a message with the given severity, messageKey and params. |
protected javax.faces.context.ExternalContext |
getContext()
Convenience utility method to get the external context. |
protected String |
getMessageBundleName()
Convenience utility method to get the name of the application's message bundle. |
protected String |
getRequestParameter(String paramName)
Gets the value of a request parameter. |
protected javax.servlet.ServletContext |
getServletContext()
Convenience utility method to get access to the underlying servlet context. |
protected javax.servlet.http.HttpSession |
getSession()
Convenience utility method to get access to the underlying servlet context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractContextAwareBean()
| Method Detail |
protected javax.faces.context.ExternalContext getContext()
protected String getMessageBundleName()
faces-confix.xml
protected void addMessage(javax.faces.application.FacesMessage.Severity severity,
String messageKey,
Object[] params)
severity - The severity of the message.messageKey - The key for the message.params - An array of params.protected javax.servlet.ServletContext getServletContext()
protected javax.servlet.http.HttpSession getSession()
protected String getRequestParameter(String paramName)
paramName - the name of the request parameter.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||