Package javax.faces.view.facelets
Class FaceletContext
- java.lang.Object
-
- javax.el.ELContext
-
- javax.faces.view.facelets.FaceletContext
-
public abstract class FaceletContext extends javax.el.ELContextThe parent or root object in a FaceletHandler composition. The Facelet will take care of populating the passed UIComponent parent in relation to the create/restore lifecycle of JSF.- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringFACELET_CONTEXT_KEY
-
Constructor Summary
Constructors Constructor Description FaceletContext()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract StringgenerateUniqueId(String base)Generate a unique ID for the passed Stringabstract ObjectgetAttribute(String name)Support method which is backed by the current VariableMapperabstract javax.el.ExpressionFactorygetExpressionFactory()The ExpressionFactory to use within the Facelet this context is executing upon.abstract FacesContextgetFacesContext()The current FacesContext bound to this "request"abstract voidincludeFacelet(UIComponent parent, String relativePath)Include another Facelet defined at some path, relative to the executing context, not the current Facelet (same as include directive in JSP)abstract voidincludeFacelet(UIComponent parent, URL absolutePath)Include another Facelet defined at some path, absolute to this ClassLoader/OSabstract voidsetAttribute(String name, Object value)Support method which is backed by the current VariableMapperabstract voidsetFunctionMapper(javax.el.FunctionMapper fnMapper)Set the FunctionMapper to use in EL evaluation/creationabstract voidsetVariableMapper(javax.el.VariableMapper varMapper)Set the VariableMapper to use in EL evaluation/creation-
Methods inherited from class javax.el.ELContext
addEvaluationListener, convertToType, enterLambdaScope, exitLambdaScope, getContext, getELResolver, getEvaluationListeners, getFunctionMapper, getImportHandler, getLambdaArgument, getLocale, getVariableMapper, isLambdaArgument, isPropertyResolved, notifyAfterEvaluation, notifyBeforeEvaluation, notifyPropertyResolved, putContext, setLocale, setPropertyResolved, setPropertyResolved
-
-
-
-
Field Detail
-
FACELET_CONTEXT_KEY
public static final String FACELET_CONTEXT_KEY
-
-
Method Detail
-
generateUniqueId
public abstract String generateUniqueId(String base)
Generate a unique ID for the passed String- Parameters:
base-- Returns:
- a unique ID given the passed base
-
getAttribute
public abstract Object getAttribute(String name)
Support method which is backed by the current VariableMapper- Parameters:
name-- Returns:
- an Object specified for that name
-
getExpressionFactory
public abstract javax.el.ExpressionFactory getExpressionFactory()
The ExpressionFactory to use within the Facelet this context is executing upon.- Returns:
- cannot be null
-
getFacesContext
public abstract FacesContext getFacesContext()
The current FacesContext bound to this "request"- Returns:
- cannot be null
-
includeFacelet
public abstract void includeFacelet(UIComponent parent, String relativePath) throws IOException
Include another Facelet defined at some path, relative to the executing context, not the current Facelet (same as include directive in JSP)- Parameters:
parent-relativePath-- Throws:
IOExceptionFaceletExceptionFacesExceptionELException
-
includeFacelet
public abstract void includeFacelet(UIComponent parent, URL absolutePath) throws IOException
Include another Facelet defined at some path, absolute to this ClassLoader/OS- Parameters:
parent-absolutePath-- Throws:
IOExceptionFaceletExceptionFacesExceptionELException
-
setAttribute
public abstract void setAttribute(String name, Object value)
Support method which is backed by the current VariableMapper- Parameters:
name-value-
-
setFunctionMapper
public abstract void setFunctionMapper(javax.el.FunctionMapper fnMapper)
Set the FunctionMapper to use in EL evaluation/creation- Parameters:
fnMapper-
-
setVariableMapper
public abstract void setVariableMapper(javax.el.VariableMapper varMapper)
Set the VariableMapper to use in EL evaluation/creation- Parameters:
varMapper-
-
-