|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.el.ELContext
javax.faces.view.facelets.FaceletContext
org.apache.myfaces.view.facelets.AbstractFaceletContext
public abstract class AbstractFaceletContext
This class contains methods that belongs to original FaceletContext shipped in facelets code before 2.0, but does not take part from api, so are considered implementation details. This includes methods related to template handling feature of facelets (called by ui:composition, ui:define and ui:insert). The methods here are only used by the current implementation and the intention is not expose it as public api. Aditionally, it also contains methods used by the current implementation for implement new features, like composite components and UniqueIdVendor support.
Field Summary |
---|
Fields inherited from class javax.faces.view.facelets.FaceletContext |
---|
FACELET_CONTEXT_KEY |
Constructor Summary | |
---|---|
AbstractFaceletContext()
|
Method Summary | |
---|---|
abstract void |
applyCompositeComponent(UIComponent parent,
Resource resource)
Apply the facelet referenced by a url containing a composite component definition to the current UIComponent. |
abstract void |
extendClient(TemplateClient client)
|
abstract Iterator<AjaxHandler> |
getAjaxHandlers()
Return a descending iterator containing the ajax handlers to be applied to an specific component that implements ClientBehaviorHolder interface, according to the conditions specified on jsf 2.0 spec section 10.4.1.1. |
abstract FaceletCompositionContext |
getFaceletCompositionContext()
Return the current FaceletCompositionContext instance from this build. |
abstract boolean |
includeCompositeComponentDefinition(UIComponent parent,
String name)
This method resolve the current definition to be added by cc:insertChildren or cc:insertFacet. |
abstract boolean |
includeDefinition(UIComponent parent,
String name)
This method will walk through the TemplateClient stack to resolve and apply the definition for the passed name. |
abstract boolean |
isBuildingCompositeComponentMetadata()
Check if this build is for build composite component metadata |
abstract void |
popAjaxHandlerToStack()
|
abstract TemplateManager |
popClient(TemplateClient client)
Pop the last added pushed TemplateClient |
abstract void |
popCompositeComponentClient()
Pop the current composite component template client, removing the current template context from stack. |
abstract TemplateManager |
popExtendedClient(TemplateClient client)
Pop the last added extended TemplateClient |
abstract TemplateContext |
popTemplateContext()
Pop the passed template context instance from stack. |
abstract void |
pushAjaxHandlerToStack(AjaxHandler parent)
|
abstract void |
pushClient(TemplateClient client)
Push the passed TemplateClient onto the stack for Definition Resolution |
abstract void |
pushCompositeComponentClient(TemplateClient client)
Push the composite component tag handler identified by client on template context stack, triggering the creation of a new empty TemplateContext, that will be used to resolve templates used on that component later. |
abstract void |
pushTemplateContext(TemplateContext templateContext)
Push the passed template context instance onto the stack, so all slots to be resolved (using includeDefinition() call) will take into account the information there. |
Methods inherited from class javax.faces.view.facelets.FaceletContext |
---|
generateUniqueId, getAttribute, getExpressionFactory, getFacesContext, includeFacelet, includeFacelet, setAttribute, setFunctionMapper, setVariableMapper |
Methods inherited from class javax.el.ELContext |
---|
getContext, getELResolver, getFunctionMapper, getLocale, getVariableMapper, isPropertyResolved, putContext, setLocale, setPropertyResolved |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractFaceletContext()
Method Detail |
---|
public abstract FaceletCompositionContext getFaceletCompositionContext()
public abstract void pushClient(TemplateClient client)
client
- TemplateClient
public abstract TemplateManager popClient(TemplateClient client)
TemplateClient
public abstract TemplateManager popExtendedClient(TemplateClient client)
client
- public abstract void extendClient(TemplateClient client)
public abstract boolean includeDefinition(UIComponent parent, String name) throws IOException, FaceletException, FacesException, javax.el.ELException
parent
- the UIComponent to apply toname
- name or null of the definition you want to apply
IOException
FaceletException
FacesException
javax.el.ELException
public abstract void applyCompositeComponent(UIComponent parent, Resource resource) throws IOException, FaceletException, FacesException, javax.el.ELException
parent
- url
-
IOException
FaceletException
FacesException
javax.el.ELException
public abstract Iterator<AjaxHandler> getAjaxHandlers()
public abstract void popAjaxHandlerToStack()
public abstract void pushAjaxHandlerToStack(AjaxHandler parent)
public abstract boolean isBuildingCompositeComponentMetadata()
public abstract void popCompositeComponentClient()
public abstract void pushCompositeComponentClient(TemplateClient client)
public abstract void pushTemplateContext(TemplateContext templateContext)
public abstract TemplateContext popTemplateContext()
public abstract boolean includeCompositeComponentDefinition(UIComponent parent, String name) throws IOException, FaceletException, FacesException, javax.el.ELException
IOException
FaceletException
FacesException
javax.el.ELException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |