|
|||||||||
| Home >> All >> com >> sun >> facelets >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.sun.facelets.impl
Class DefaultFaceletContext

java.lang.ObjectELContext
com.sun.facelets.FaceletContext
com.sun.facelets.impl.DefaultFaceletContext
- final class DefaultFaceletContext
- extends com.sun.facelets.FaceletContext
Default FaceletContext implementation. A single FaceletContext is used for all Facelets involved in an invocation of Facelet#apply(FacesContext, UIComponent) 55 . This means that included Facelets are treated the same as the JSP include directive.
- Version:
- $Id: DefaultFaceletContext.java,v 1.4.4.3 2006/03/25 01:01:53 jhook Exp $
| Nested Class Summary | |
private static class |
DefaultFaceletContext.TemplateManager
|
| Field Summary | |
private java.util.List |
clients
|
private ELContext |
ctx
|
private DefaultFacelet |
facelet
|
private javax.faces.context.FacesContext |
faces
|
private FunctionMapper |
fnMapper
|
private java.util.Map |
ids
|
private VariableMapper |
varMapper
|
| Constructor Summary | |
DefaultFaceletContext(DefaultFaceletContext ctx,
DefaultFacelet facelet)
|
|
DefaultFaceletContext(javax.faces.context.FacesContext faces,
DefaultFacelet facelet)
|
|
| Method Summary | |
void |
extendClient(com.sun.facelets.TemplateClient client)
|
java.lang.String |
generateUniqueId(java.lang.String base)
Generate a unique ID for the passed String |
java.lang.Object |
getAttribute(java.lang.String name)
Support method which is backed by the current VariableMapper |
java.lang.Object |
getContext(java.lang.Class key)
|
ELResolver |
getELResolver()
|
ExpressionFactory |
getExpressionFactory()
The ExpressionFactory to use within the Facelet this context is executing upon. |
javax.faces.context.FacesContext |
getFacesContext()
The current FacesContext bound to this "request" |
FunctionMapper |
getFunctionMapper()
|
VariableMapper |
getVariableMapper()
|
boolean |
includeDefinition(javax.faces.component.UIComponent parent,
java.lang.String name)
This method will walk through the TemplateClient stack to resolve and apply the definition for the passed name. |
void |
includeFacelet(javax.faces.component.UIComponent parent,
java.lang.String relativePath)
Include another Facelet defined at some path, relative to the executing context, not the current Facelet (same as include directive in JSP) |
void |
includeFacelet(javax.faces.component.UIComponent parent,
java.net.URL absolutePath)
Include another Facelet defined at some path, absolute to this ClassLoader/OS |
void |
popClient(com.sun.facelets.TemplateClient client)
Pop the last added TemplateClient |
void |
pushClient(com.sun.facelets.TemplateClient client)
Push the passed TemplateClient onto the stack for Definition Resolution |
void |
putContext(java.lang.Class key,
java.lang.Object contextObject)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Support method which is backed by the current VariableMapper |
void |
setFunctionMapper(FunctionMapper fnMapper)
Set the FunctionMapper to use in EL evaluation/creation |
void |
setVariableMapper(VariableMapper varMapper)
Set the VariableMapper to use in EL evaluation/creation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
faces
private final javax.faces.context.FacesContext faces
ctx
private final ELContext ctx
facelet
private final DefaultFacelet facelet
varMapper
private VariableMapper varMapper
fnMapper
private FunctionMapper fnMapper
ids
private final java.util.Map ids
clients
private final java.util.List clients
| Constructor Detail |
DefaultFaceletContext
public DefaultFaceletContext(DefaultFaceletContext ctx, DefaultFacelet facelet)
DefaultFaceletContext
public DefaultFaceletContext(javax.faces.context.FacesContext faces, DefaultFacelet facelet)
| Method Detail |
getFacesContext
public javax.faces.context.FacesContext getFacesContext()
- Description copied from class:
com.sun.facelets.FaceletContext - The current FacesContext bound to this "request"
getExpressionFactory
public ExpressionFactory getExpressionFactory()
- Description copied from class:
com.sun.facelets.FaceletContext - The ExpressionFactory to use within the Facelet this context is executing
upon.
setVariableMapper
public void setVariableMapper(VariableMapper varMapper)
- Description copied from class:
com.sun.facelets.FaceletContext - Set the VariableMapper to use in EL evaluation/creation
setFunctionMapper
public void setFunctionMapper(FunctionMapper fnMapper)
- Description copied from class:
com.sun.facelets.FaceletContext - Set the FunctionMapper to use in EL evaluation/creation
includeFacelet
public void includeFacelet(javax.faces.component.UIComponent parent, java.lang.String relativePath) throws java.io.IOException, com.sun.facelets.FaceletException, javax.faces.FacesException, ELException
- Description copied from class:
com.sun.facelets.FaceletContext - Include another Facelet defined at some path, relative to the executing
context, not the current Facelet (same as include directive in JSP)
getFunctionMapper
public FunctionMapper getFunctionMapper()
getVariableMapper
public VariableMapper getVariableMapper()
getContext
public java.lang.Object getContext(java.lang.Class key)
putContext
public void putContext(java.lang.Class key, java.lang.Object contextObject)
generateUniqueId
public java.lang.String generateUniqueId(java.lang.String base)
- Description copied from class:
com.sun.facelets.FaceletContext - Generate a unique ID for the passed String
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Description copied from class:
com.sun.facelets.FaceletContext - Support method which is backed by the current VariableMapper
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object value)
- Description copied from class:
com.sun.facelets.FaceletContext - Support method which is backed by the current VariableMapper
includeFacelet
public void includeFacelet(javax.faces.component.UIComponent parent, java.net.URL absolutePath) throws java.io.IOException, com.sun.facelets.FaceletException, javax.faces.FacesException, ELException
- Description copied from class:
com.sun.facelets.FaceletContext - Include another Facelet defined at some path, absolute to this
ClassLoader/OS
getELResolver
public ELResolver getELResolver()
popClient
public void popClient(com.sun.facelets.TemplateClient client)
- Description copied from class:
com.sun.facelets.FaceletContext - Pop the last added TemplateClient
pushClient
public void pushClient(com.sun.facelets.TemplateClient client)
- Description copied from class:
com.sun.facelets.FaceletContext - Push the passed TemplateClient onto the stack for Definition Resolution
extendClient
public void extendClient(com.sun.facelets.TemplateClient client)
includeDefinition
public boolean includeDefinition(javax.faces.component.UIComponent parent, java.lang.String name) throws java.io.IOException, com.sun.facelets.FaceletException, javax.faces.FacesException, ELException
- Description copied from class:
com.sun.facelets.FaceletContext - This method will walk through the TemplateClient stack to resolve and
apply the definition for the passed name.
If it's been resolved and applied, this method will return true.
|
|||||||||
| Home >> All >> com >> sun >> facelets >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
ELContext