public class TemplateContextImpl extends TemplateContext
| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateContextImpl.InitialPageContext |
static class |
TemplateContextImpl.InitialTemplateClient
This is just a dummy template client that does nothing that is added by default
for each template context
|
| Constructor and Description |
|---|
TemplateContextImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addKnownParameters(String key) |
boolean |
containsKnownParameter(String key) |
boolean |
containsParameter(String key) |
void |
extendClient(AbstractFaceletContext actx,
AbstractFacelet owner,
TemplateClient client) |
TemplateManager |
getCompositeComponentClient() |
Set<String> |
getKnownParameters()
Return a set of the parameters known associated to this template context and/or
template.
|
jakarta.el.ValueExpression |
getParameter(String key)
Return the param value expression associated to the key passed,
preserving the precedence of each template client.
|
Map<String,jakarta.el.ValueExpression> |
getParameterMap() |
boolean |
includeDefinition(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.
|
boolean |
isAllowCacheELExpressions() |
boolean |
isKnownParametersEmpty() |
boolean |
isParameterEmpty()
Check if no parameters are set.
|
TemplateManager |
popClient(AbstractFaceletContext actx)
Pop the last added pushed TemplateClient
|
TemplateManager |
popExtendedClient(AbstractFaceletContext actx)
Pop the last added extended TemplateClient
|
void |
pushClient(AbstractFaceletContext actx,
AbstractFacelet owner,
TemplateClient client)
Push the passed TemplateClient onto the stack for Definition Resolution
|
void |
setAllowCacheELExpressions(boolean cacheELExpressions) |
void |
setCompositeComponentClient(TemplateManager compositeComponentClient)
Set the composite component TemplateManager instance, used to resolve
cc:insertChildred or cc:insertFacet usages for the current template
context
|
void |
setParameter(String key,
jakarta.el.ValueExpression value)
Associate the param to the latest template client.
|
public TemplateManager popClient(AbstractFaceletContext actx)
TemplateContextpopClient in class TemplateContextTemplateClientpublic void pushClient(AbstractFaceletContext actx, AbstractFacelet owner, TemplateClient client)
TemplateContextpushClient in class TemplateContextTemplateClientpublic TemplateManager popExtendedClient(AbstractFaceletContext actx)
TemplateContextpopExtendedClient in class TemplateContextpublic void extendClient(AbstractFaceletContext actx, AbstractFacelet owner, TemplateClient client)
extendClient in class TemplateContextpublic boolean includeDefinition(FaceletContext ctx, Facelet owner, UIComponent parent, String name) throws IOException, FaceletException, FacesException, jakarta.el.ELException
TemplateContextincludeDefinition in class TemplateContextparent - the UIComponent to apply toname - name or null of the definition you want to applyIOExceptionFaceletExceptionFacesExceptionjakarta.el.ELExceptionpublic TemplateManager getCompositeComponentClient()
getCompositeComponentClient in class TemplateContextpublic void setCompositeComponentClient(TemplateManager compositeComponentClient)
TemplateContextsetCompositeComponentClient in class TemplateContextpublic jakarta.el.ValueExpression getParameter(String key)
TemplateContextgetParameter in class TemplateContextpublic boolean containsParameter(String key)
containsParameter in class TemplateContextpublic void setParameter(String key, jakarta.el.ValueExpression value)
TemplateContextsetParameter in class TemplateContextpublic boolean isParameterEmpty()
TemplateContextisParameterEmpty in class TemplateContextpublic Map<String,jakarta.el.ValueExpression> getParameterMap()
getParameterMap in class TemplateContextpublic boolean isKnownParametersEmpty()
isKnownParametersEmpty in class TemplateContextpublic Set<String> getKnownParameters()
TemplateContextgetKnownParameters in class TemplateContextpublic boolean containsKnownParameter(String key)
containsKnownParameter in class TemplateContextpublic void addKnownParameters(String key)
addKnownParameters in class TemplateContextpublic boolean isAllowCacheELExpressions()
isAllowCacheELExpressions in class TemplateContextpublic void setAllowCacheELExpressions(boolean cacheELExpressions)
setAllowCacheELExpressions in class TemplateContextCopyright © 2021 The Apache Software Foundation. All rights reserved.