|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpagecode.PageCodeBase
public abstract class PageCodeBase
Provides a common base class for all generated Page Code files.
Constructor Summary | |
---|---|
PageCodeBase()
|
Method Summary | |
---|---|
static javax.faces.component.UIComponent |
findComponent(javax.faces.component.UIComponent base,
java.lang.String id)
Return the UIComponent (if any) with the specified
id , searching recursively starting at the specified
base , and examining the base component itself, followed
by examining all the base component's facets and children. |
static javax.faces.component.UIComponent |
findComponentInRoot(java.lang.String id)
|
java.util.Map |
getApplicationScope()
|
javax.faces.context.FacesContext |
getFacesContext()
|
protected java.lang.Object |
getManagedBean(java.lang.String mgdBeanName)
Return the managed bean with the given name |
protected static java.lang.String |
getRealPath(java.lang.String relPath)
Returns a full system path for a file path given relative to the web project |
java.util.Map |
getRequestParam()
|
java.util.Map |
getRequestScope()
|
protected static java.io.InputStream |
getResourceInputStream(java.lang.String relPath)
Returns an InputStream for a resource at the given path |
java.util.Map |
getSessionScope()
|
protected java.lang.Object |
getTreeAttribute(java.lang.String key)
Retrieve an Object from the tree's attribute map |
protected void |
gotoPage(java.lang.String pageName)
|
protected void |
log(java.lang.String message)
|
protected void |
logException(java.lang.Throwable throwable)
|
protected void |
putTreeAttribute(java.lang.String key,
java.lang.Object value)
Place an Object on the tree's attribute map |
protected java.lang.Object |
resolveExpression(java.lang.String expression)
Return the result of the resolved expression |
protected void |
resolveParams(java.util.Map paramMap,
java.lang.String[] argNames,
java.lang.String[] argValues,
java.lang.String cacheMapKey)
Resolve all parameters passed in via the argNames/argValues array pair, and add them to the provided paramMap. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageCodeBase()
Method Detail |
---|
protected void gotoPage(java.lang.String pageName)
public static javax.faces.component.UIComponent findComponent(javax.faces.component.UIComponent base, java.lang.String id)
Return the UIComponent
(if any) with the specified
id
, searching recursively starting at the specified
base
, and examining the base component itself, followed
by examining all the base component's facets and children.
Unlike findComponent method of UIComponentBase
, which
skips recursive scan each time it finds a NamingContainer
,
this method examines all components, regardless of their namespace
(assuming IDs are unique).
base
- Base UIComponent
from which to searchid
- Component identifier to be matchedpublic static javax.faces.component.UIComponent findComponentInRoot(java.lang.String id)
protected void putTreeAttribute(java.lang.String key, java.lang.Object value)
key
- value
- protected java.lang.Object getTreeAttribute(java.lang.String key)
key
-
protected java.lang.Object resolveExpression(java.lang.String expression)
expression
-
protected java.lang.Object getManagedBean(java.lang.String mgdBeanName)
mgdBeanName
- the name of the managed bean to retrieve
protected void resolveParams(java.util.Map paramMap, java.lang.String[] argNames, java.lang.String[] argValues, java.lang.String cacheMapKey)
paramMap
- argNames
- argValues
- cacheMapKey
- protected static java.lang.String getRealPath(java.lang.String relPath)
protected static java.io.InputStream getResourceInputStream(java.lang.String relPath)
protected void logException(java.lang.Throwable throwable)
protected void log(java.lang.String message)
public java.util.Map getApplicationScope()
public javax.faces.context.FacesContext getFacesContext()
public java.util.Map getRequestParam()
public java.util.Map getRequestScope()
public java.util.Map getSessionScope()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |