|
|||||||||||
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,
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(String id)
|
Map |
getApplicationScope()
|
javax.faces.context.FacesContext |
getFacesContext()
|
protected Object |
getManagedBean(String mgdBeanName)
Return the managed bean with the given name |
protected static String |
getRealPath(String relPath)
Returns a full system path for a file path given relative to the web project |
Map |
getRequestParam()
|
Map |
getRequestScope()
|
protected static InputStream |
getResourceInputStream(String relPath)
Returns an InputStream for a resource at the given path |
Map |
getSessionScope()
|
protected Object |
getTreeAttribute(String key)
Retrieve an Object from the tree's attribute map |
protected void |
gotoPage(String pageName)
|
protected void |
log(String message)
|
protected void |
logException(Throwable throwable)
|
protected void |
putTreeAttribute(String key,
Object value)
Place an Object on the tree's attribute map |
protected Object |
resolveExpression(String expression)
Return the result of the resolved expression |
protected void |
resolveParams(Map paramMap,
String[] argNames,
String[] argValues,
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(String pageName)
public static javax.faces.component.UIComponent findComponent(javax.faces.component.UIComponent base, 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(String id)
protected void putTreeAttribute(String key, Object value)
key
- value
- protected Object getTreeAttribute(String key)
key
-
protected Object resolveExpression(String expression)
expression
-
protected Object getManagedBean(String mgdBeanName)
mgdBeanName
- the name of the managed bean to retrieve
protected void resolveParams(Map paramMap, String[] argNames, String[] argValues, String cacheMapKey)
paramMap
- argNames
- argValues
- cacheMapKey
- protected static String getRealPath(String relPath)
protected static InputStream getResourceInputStream(String relPath)
protected void logException(Throwable throwable)
protected void log(String message)
public Map getApplicationScope()
public javax.faces.context.FacesContext getFacesContext()
public Map getRequestParam()
public Map getRequestScope()
public Map getSessionScope()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |