Package jakarta.faces.view.facelets
Class FaceletContext
java.lang.Object
jakarta.el.ELContext
jakarta.faces.view.facelets.FaceletContext
public abstract class FaceletContext
extends jakarta.el.ELContext
The 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 Faces.
- Since:
- 2.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
generateUniqueId
(String base) Generate a unique ID for the passed Stringabstract Object
getAttribute
(String name) Support method which is backed by the current VariableMapperabstract jakarta.el.ExpressionFactory
The ExpressionFactory to use within the Facelet this context is executing upon.abstract FacesContext
The current FacesContext bound to this "request"abstract void
includeFacelet
(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 void
includeFacelet
(UIComponent parent, URL absolutePath) Include another Facelet defined at some path, absolute to this ClassLoader/OSabstract void
setAttribute
(String name, Object value) Support method which is backed by the current VariableMapperabstract void
setFunctionMapper
(jakarta.el.FunctionMapper fnMapper) Set the FunctionMapper to use in EL evaluation/creationabstract void
setVariableMapper
(jakarta.el.VariableMapper varMapper) Set the VariableMapper to use in EL evaluation/creationMethods inherited from class jakarta.el.ELContext
addEvaluationListener, convertToType, enterLambdaScope, exitLambdaScope, getContext, getELResolver, getEvaluationListeners, getFunctionMapper, getImportHandler, getLambdaArgument, getLocale, getVariableMapper, isLambdaArgument, isPropertyResolved, notifyAfterEvaluation, notifyBeforeEvaluation, notifyPropertyResolved, putContext, setLocale, setPropertyResolved, setPropertyResolved
-
Field Details
-
FACELET_CONTEXT_KEY
-
-
Constructor Details
-
FaceletContext
public FaceletContext()
-
-
Method Details
-
generateUniqueId
Generate a unique ID for the passed String- Parameters:
base
-- Returns:
- a unique ID given the passed base
-
getAttribute
Support method which is backed by the current VariableMapper- Parameters:
name
-- Returns:
- an Object specified for that name
-
getExpressionFactory
public abstract jakarta.el.ExpressionFactory getExpressionFactory()The ExpressionFactory to use within the Facelet this context is executing upon.- Returns:
- cannot be null
-
getFacesContext
The current FacesContext bound to this "request"- Returns:
- cannot be null
-
includeFacelet
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:
IOException
FaceletException
FacesException
ELException
-
includeFacelet
Include another Facelet defined at some path, absolute to this ClassLoader/OS- Parameters:
parent
-absolutePath
-- Throws:
IOException
FaceletException
FacesException
ELException
-
setAttribute
Support method which is backed by the current VariableMapper- Parameters:
name
-value
-
-
setFunctionMapper
public abstract void setFunctionMapper(jakarta.el.FunctionMapper fnMapper) Set the FunctionMapper to use in EL evaluation/creation- Parameters:
fnMapper
-
-
setVariableMapper
public abstract void setVariableMapper(jakarta.el.VariableMapper varMapper) Set the VariableMapper to use in EL evaluation/creation- Parameters:
varMapper
-
-