|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hdpagination.web.jsf.util.FacesContextUtil
public final class FacesContextUtil
JSF context utility class
| Method Summary | |
|---|---|
static java.util.Map |
getCustomScopedMap(javax.faces.context.FacesContext facesContext,
java.lang.String scopeMapExpr)
Get the instance of Map which represents custom scope(only supported since JSF 2). |
static javax.servlet.http.HttpServletRequest |
getHttpRequest(javax.faces.context.FacesContext facesContext)
Get HttpServletRequest from JSF Context |
static java.lang.Object |
getSessionAttribute(javax.faces.context.FacesContext facesContext,
java.lang.String attrName)
Get value of attribute in session |
static void |
setApplicationAttribute(javax.faces.context.FacesContext facesContext,
java.lang.String attrName,
java.lang.Object value)
Set value of attribute in application scope (Servlet Context) |
static void |
setCustomScopedAttribute(javax.faces.context.FacesContext facesContext,
java.lang.String scopeMapExpr,
java.lang.String attrName,
java.lang.Object value)
Set value of attribute in custom scope (only supported since JSF 2). |
static void |
setRequestAttribute(javax.faces.context.FacesContext facesContext,
java.lang.String attrName,
java.lang.Object value)
Set value of attribute in request |
static void |
setSessionAttribute(javax.faces.context.FacesContext facesContext,
java.lang.String attrName,
java.lang.Object value)
Set value of attribute in session |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static javax.servlet.http.HttpServletRequest getHttpRequest(javax.faces.context.FacesContext facesContext)
facesContext -
public static java.lang.Object getSessionAttribute(javax.faces.context.FacesContext facesContext,
java.lang.String attrName)
facesContext - attrName - attribute name
public static void setSessionAttribute(javax.faces.context.FacesContext facesContext,
java.lang.String attrName,
java.lang.Object value)
facesContext - attrName - attribute namevalue - attribute value
public static void setRequestAttribute(javax.faces.context.FacesContext facesContext,
java.lang.String attrName,
java.lang.Object value)
facesContext - attrName - attribute namevalue - attribute value
public static void setApplicationAttribute(javax.faces.context.FacesContext facesContext,
java.lang.String attrName,
java.lang.Object value)
facesContext - attrName - attribute namevalue - attribute value
public static void setCustomScopedAttribute(javax.faces.context.FacesContext facesContext,
java.lang.String scopeMapExpr,
java.lang.String attrName,
java.lang.Object value)
facesContext - scopeMapExpr - The EL expression to parse (The EL Expression must resolve to class that implements java.util.Map)attrName - attribute namevalue - attribute value
public static java.util.Map getCustomScopedMap(javax.faces.context.FacesContext facesContext,
java.lang.String scopeMapExpr)
facesContext - scopeMapExpr - The EL expression to parse (The EL Expression must resolve to class that implements java.util.Map)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||