|
||||||||||
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 java.util.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 UIComponent |
getCompositeComponentFromStack()
Return the composite component being applied on the current facelet. |
abstract java.util.Iterator<java.lang.String> |
getEnclosingValidatorIds()
Gets all validationIds on the stack. |
abstract java.util.Iterator<java.lang.String> |
getExcludedValidatorIds()
Gets all validationIds on the stack. |
abstract java.lang.String |
getFirstValidationGroupFromStack()
Gets the top of the validationGroups stack. |
abstract UniqueIdVendor |
getUniqueIdVendorFromStack()
Return the latest UniqueIdVendor created from stack. |
abstract boolean |
includeDefinition(UIComponent parent,
java.lang.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 boolean |
isMarkInitialState()
Check if this build should be marked as initial state. |
abstract boolean |
isRefreshingTransientBuild()
Check if this build is being refreshed, adding transient components and adding/removing components under c:if or c:forEach or not. |
abstract boolean |
isRefreshTransientBuildOnPSS()
Check if the current view will be refreshed with partial state saving. |
abstract boolean |
isUsingPSSOnThisView()
Check if we are using partial state saving on this view |
abstract void |
popAjaxHandlerToStack()
|
abstract void |
popClient(TemplateClient client)
Pop the last added TemplateClient |
abstract void |
popCompositeComponentToStack()
|
abstract void |
popEnclosingValidatorIdToStack()
Removes top of stack. |
abstract void |
popExcludedValidatorIdToStack()
Removes top of stack. |
abstract void |
popUniqueIdVendorToStack()
|
abstract void |
popValidationGroupsToStack()
Removes top of stack. |
abstract void |
pushAjaxHandlerToStack(AjaxHandler parent)
|
abstract void |
pushClient(TemplateClient client)
Push the passed TemplateClient onto the stack for Definition Resolution |
abstract void |
pushCompositeComponentToStack(UIComponent parent)
|
abstract void |
pushEnclosingValidatorIdToStack(java.lang.String validatorId)
Pushes validatorId to the stack of all enclosing validatorIds. |
abstract void |
pushExcludedValidatorIdToStack(java.lang.String validatorId)
Pushes validatorId to the stack of excluded validatorIds. |
abstract void |
pushUniqueIdVendorToStack(UniqueIdVendor parent)
|
abstract void |
pushValidationGroupsToStack(java.lang.String validationGroups)
Pushes validationGroups to the stack. |
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 void pushClient(TemplateClient client)
client
- TemplateClient
public abstract void popClient(TemplateClient client)
TemplateClient
public abstract void extendClient(TemplateClient client)
public abstract boolean includeDefinition(UIComponent parent, java.lang.String name) throws java.io.IOException, FaceletException, FacesException, javax.el.ELException
parent
- the UIComponent to apply toname
- name or null of the definition you want to apply
java.io.IOException
FaceletException
FacesException
javax.el.ELException
public abstract void applyCompositeComponent(UIComponent parent, Resource resource) throws java.io.IOException, FaceletException, FacesException, javax.el.ELException
parent
- url
-
java.io.IOException
FaceletException
FacesException
javax.el.ELException
public abstract UIComponent getCompositeComponentFromStack()
facesContext
-
public abstract void pushCompositeComponentToStack(UIComponent parent)
parent
- public abstract void popCompositeComponentToStack()
public abstract UniqueIdVendor getUniqueIdVendorFromStack()
public abstract void pushUniqueIdVendorToStack(UniqueIdVendor parent)
parent
- public abstract void popUniqueIdVendorToStack()
public abstract java.util.Iterator<AjaxHandler> getAjaxHandlers()
public abstract void popAjaxHandlerToStack()
public abstract void pushAjaxHandlerToStack(AjaxHandler parent)
public abstract java.lang.String getFirstValidationGroupFromStack()
public abstract void popValidationGroupsToStack()
public abstract void pushValidationGroupsToStack(java.lang.String validationGroups)
validationGroups
- public abstract java.util.Iterator<java.lang.String> getExcludedValidatorIds()
public abstract void popExcludedValidatorIdToStack()
public abstract void pushExcludedValidatorIdToStack(java.lang.String validatorId)
validatorId
- public abstract java.util.Iterator<java.lang.String> getEnclosingValidatorIds()
public abstract void popEnclosingValidatorIdToStack()
public abstract void pushEnclosingValidatorIdToStack(java.lang.String validatorId)
validatorId
- public abstract boolean isRefreshingTransientBuild()
public abstract boolean isMarkInitialState()
public abstract boolean isBuildingCompositeComponentMetadata()
public abstract boolean isRefreshTransientBuildOnPSS()
public abstract boolean isUsingPSSOnThisView()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |