Class TemplateContextImpl
java.lang.Object
org.apache.myfaces.view.facelets.TemplateContext
org.apache.myfaces.view.facelets.impl.TemplateContextImpl
- Since:
- 2.0.1
- Version:
- $Revision$ $Date$
- Author:
- Leonardo Uribe (latest modification by $Author$)
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classstatic final classThis is just a dummy template client that does nothing that is added by default for each template context
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddKnownParameters(String key) booleanbooleancontainsParameter(String key) voidextendClient(AbstractFaceletContext actx, AbstractFacelet owner, TemplateClient client) Return a set of the parameters known associated to this template context and/or template.jakarta.el.ValueExpressiongetParameter(String key) Return the param value expression associated to the key passed, preserving the precedence of each template client.booleanincludeDefinition(FaceletContext ctx, Facelet owner, UIComponent parent, String name) This method will walk through the TemplateClient stack to resolve and apply the definition for the passed name.booleanbooleanbooleanCheck if no parameters are set.Pop the last added pushed TemplateClientPop the last added extended TemplateClientvoidpushClient(AbstractFaceletContext actx, AbstractFacelet owner, TemplateClient client) Push the passed TemplateClient onto the stack for Definition ResolutionvoidsetAllowCacheELExpressions(boolean cacheELExpressions) voidsetCompositeComponentClient(TemplateManager compositeComponentClient) Set the composite component TemplateManager instance, used to resolve cc:insertChildred or cc:insertFacet usages for the current template contextvoidsetParameter(String key, jakarta.el.ValueExpression value) Associate the param to the latest template client.
- 
Constructor Details- 
TemplateContextImplpublic TemplateContextImpl()
 
- 
- 
Method Details- 
popClientDescription copied from class:TemplateContextPop the last added pushed TemplateClient- Specified by:
- popClientin class- TemplateContext
- See Also:
 
- 
pushClientDescription copied from class:TemplateContextPush the passed TemplateClient onto the stack for Definition Resolution- Specified by:
- pushClientin class- TemplateContext
- See Also:
 
- 
popExtendedClientDescription copied from class:TemplateContextPop the last added extended TemplateClient- Specified by:
- popExtendedClientin class- TemplateContext
 
- 
extendClient- Specified by:
- extendClientin class- TemplateContext
 
- 
includeDefinitionpublic boolean includeDefinition(FaceletContext ctx, Facelet owner, UIComponent parent, String name) throws IOException, FaceletException, FacesException, jakarta.el.ELException Description copied from class:TemplateContextThis 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.- Specified by:
- includeDefinitionin class- TemplateContext
- parent- the UIComponent to apply to
- name- name or null of the definition you want to apply
- Returns:
- true if successfully applied, otherwise false
- Throws:
- IOException
- FaceletException
- FacesException
- jakarta.el.ELException
 
- 
getCompositeComponentClient- Specified by:
- getCompositeComponentClientin class- TemplateContext
 
- 
setCompositeComponentClientDescription copied from class:TemplateContextSet the composite component TemplateManager instance, used to resolve cc:insertChildred or cc:insertFacet usages for the current template context- Specified by:
- setCompositeComponentClientin class- TemplateContext
 
- 
getParameterDescription copied from class:TemplateContextReturn the param value expression associated to the key passed, preserving the precedence of each template client.- Specified by:
- getParameterin class- TemplateContext
- Returns:
 
- 
containsParameter- Specified by:
- containsParameterin class- TemplateContext
- Returns:
 
- 
setParameterDescription copied from class:TemplateContextAssociate the param to the latest template client.- Specified by:
- setParameterin class- TemplateContext
 
- 
isParameterEmptypublic boolean isParameterEmpty()Description copied from class:TemplateContextCheck if no parameters are set.- Specified by:
- isParameterEmptyin class- TemplateContext
- Returns:
 
- 
getParameterMap- Specified by:
- getParameterMapin class- TemplateContext
- Returns:
 
- 
isKnownParametersEmptypublic boolean isKnownParametersEmpty()- Specified by:
- isKnownParametersEmptyin class- TemplateContext
- Returns:
 
- 
getKnownParametersDescription copied from class:TemplateContextReturn a set of the parameters known associated to this template context and/or template. This logic is used to detect which EL Expressions can be cached or not.- Specified by:
- getKnownParametersin class- TemplateContext
- Returns:
 
- 
containsKnownParameter- Specified by:
- containsKnownParameterin class- TemplateContext
- Returns:
 
- 
addKnownParameters- Specified by:
- addKnownParametersin class- TemplateContext
 
- 
isAllowCacheELExpressionspublic boolean isAllowCacheELExpressions()- Specified by:
- isAllowCacheELExpressionsin class- TemplateContext
- Returns:
 
- 
setAllowCacheELExpressionspublic void setAllowCacheELExpressions(boolean cacheELExpressions) - Specified by:
- setAllowCacheELExpressionsin class- TemplateContext
 
 
-