Class FaceletCompositionContextImpl
- java.lang.Object
- 
- org.apache.myfaces.view.facelets.FaceletCompositionContext
- 
- org.apache.myfaces.view.facelets.impl.FaceletCompositionContextImpl
 
 
- 
 public class FaceletCompositionContextImpl extends FaceletCompositionContext - Since:
- 2.0.1
- Version:
- $Revision$ $Date$
- Author:
- Leonardo Uribe (latest modification by $Author$)
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringJAKARTA_FACES_LOCATION_PREFIX- 
Fields inherited from class org.apache.myfaces.view.facelets.FaceletCompositionContextFACELET_COMPOSITION_CONTEXT_KEY
 
- 
 - 
Constructor SummaryConstructors Constructor Description FaceletCompositionContextImpl(FaceletFactory factory, FacesContext facesContext)FaceletCompositionContextImpl(FaceletFactory factory, FacesContext facesContext, String base)This constructor is intended for places where the id generation strategy needs to be changed adding a unique base id, like for example on a dynamic component creation.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttachedObjectHandler(UIComponent compositeComponentParent, AttachedObjectHandler handler)Add to the composite component parent this handler, so it will be processed later when ViewDeclarationLanguage.retargetAttachedObjects is called.voidaddMethodExpressionTargeted(UIComponent targetedComponent, String attributeName, Object backingValue)Add a method expression as targeted for the provided composite componentvoidaddUniqueId(String uniqueId)Add an unique id to the list if recording is enabled, if recording is not enabled it has no effect.voidclearMethodExpressionAttribute(UIComponent compositeComponentParent, String attributeName)Clear the MethodExpression attribute to call vdl.retargetMethodExpression againbooleancontainsEnclosingValidatorId(String id)voidendComponentUniqueIdSection()Ends the current unique id section, so the previous counter will be used to generate unique ids to components.voidendComponentUniqueIdSection(String base)voidendMetadataSection()Call this method to indicate f:metadata section has been already processed since 2.1.7, 2.0.13voidfinalizeForDeletion(UIComponent component)Used in conjunction with markForDeletion where any UIComponent marked will be removed.voidfinalizeRelocatableResourcesForDeletion(UIViewRoot root)Used to clean up all unused relocatable components on the root component.StringgenerateUniqueComponentId()Generate a unique id for component instances.StringgenerateUniqueId()Generate a unique id that will be used later to derive a unique id per tag by FaceletContext.generateUniqueId().voidgenerateUniqueId(StringBuilder builderToAdd)List<AttachedObjectHandler>getAttachedObjectHandlers(UIComponent compositeComponentParent)Retrieve the list of object handlers attached to a composite component parent.UIComponentgetCompositeComponentFromStack()Return the composite component being applied on the current facelet.intgetCompositeComponentLevel()Returns the current nesting level of composite components found.ELExpressionCacheModegetELExpressionCacheMode()Indicates if a EL Expression can be or not cached by facelets vdl.Iterator<Map.Entry<String,EditableValueHolderAttachedObjectHandler>>getEnclosingValidatorIdsAndHandlers()Gets all validationIds with its associated EditableValueHolderAttachedObjectHandler from the stack.FaceletFactorygetFaceletFactory()StringBuildergetSharedStringBuilder()StringgetUniqueIdFromIterator()Return the unique id from the iterator if applies since 2.1.7, 2.0.13List<String>getUniqueIdList()Return the list of unique ids since 2.1.7, 2.0.13UniqueIdVendorgetUniqueIdVendorFromStack()Return the latest UniqueIdVendor created from stack.UIViewRootgetViewRoot(FacesContext facesContext)VisitContextFactorygetVisitContextFactory()voidincrementUniqueComponentId()voidincrementUniqueId()Increment the unique id without construct it.voidinitUniqueIdRecording()Activater record unique id mode, so an structure will be used to hold those values.booleanisBuildingViewMetadata()Check if the facelet is building view metadata since 2.1.7, 2.0.13booleanisDynamicComponentSection()Indicate if the current facelet section is a dynamic component section, which means it was added to the component tree using vdl.createComponent(...);booleanisDynamicComponentTopLevel()Check if the algorithm is applying a dynamic component and the current component is the top level one.booleanisDynamicCompositeComponentHandler()booleanisInMetadataSection()Check if the component is created inside f:metadata section since 2.1.7, 2.0.13booleanisMarkInitialState()Check if this build should be marked as initial state.booleanisMarkInitialStateAndIsRefreshTransientBuildOnPSS()booleanisMethodExpressionAttributeApplied(UIComponent compositeComponentParent, String attributeName)Check if the MethodExpression attribute has been applied using vdl.retargetMethodExpressionbooleanisRefreshingSection()Check if the section to be processed is being refreshed.booleanisRefreshingTransientBuild()Check if this build is being refreshed, adding transient components and adding/removing components under c:if or c:forEach or not.booleanisRefreshTransientBuildOnPSS()Check if the current view will be refreshed with partial state saving.booleanisRefreshTransientBuildOnPSSPreserveState()booleanisUsingPSSOnThisView()Check if we are using partial state saving on this viewbooleanisWrapTagExceptionsAsContextAware()voidmarkForDeletion(UIComponent component)Marks all direct children and Facets with an attribute for deletion.voidmarkMethodExpressionAttribute(UIComponent compositeComponentParent, String attributeName)Mark the MethodExpression attribute as applied using vdl.retargetMethodExpressionvoidmarkRelocatableResourceForDeletion(UIComponent component)Marks the given resource for deletion.voidpopCompositeComponentToStack()voidpopDynamicComponentSection()voidpopEnclosingValidatorIdToStack()Removes top of stack.voidpopUniqueIdVendorToStack()voidpushCompositeComponentToStack(UIComponent parent)voidpushDynamicComponentSection(String base)voidpushEnclosingValidatorIdToStack(String validatorId, EditableValueHolderAttachedObjectHandler attachedObjectHandler)Pushes validatorId to the stack of all enclosing validatorIds.voidpushUniqueIdVendorToStack(UniqueIdVendor parent)voidrelease(FacesContext facesContext)Releases the MyFaceletContext object.voidremoveAttachedObjectHandlers(UIComponent compositeComponentParent)Remove from the composite component parent the list of attached handlers.voidremoveComponentForDeletion(UIComponent component)ObjectremoveMethodExpressionTargeted(UIComponent targetedComponent, String attributeName)Remove a method expression as targeted for the provided composite componentvoidsetDynamicComponentTopLevel(boolean value)voidsetDynamicCompositeComponentHandler(boolean value)voidsetMarkInitialState(boolean value)voidsetUniqueIdsIterator(Iterator<String> uniqueIdsIterator)Set the iterator used to retrieve unique ids.voidsetViewRoot(UIViewRoot root)StringstartComponentUniqueIdSection()Start a new unique id section, which means a new counter is used to generate unique ids to componentsStringstartComponentUniqueIdSection(String base)Start a new unique id section, which means a new counter is used to generate unique ids to components, but appending a base to the new counter.voidstartMetadataSection()Call this method to indicate a f:metadata section is about to be processed since 2.1.7, 2.0.13- 
Methods inherited from class org.apache.myfaces.view.facelets.FaceletCompositionContextgetCurrentInstance, getCurrentInstance, getCurrentInstance, init
 
- 
 
- 
- 
- 
Field Detail- 
JAKARTA_FACES_LOCATION_PREFIXpublic static final String JAKARTA_FACES_LOCATION_PREFIX - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
FaceletCompositionContextImplpublic FaceletCompositionContextImpl(FaceletFactory factory, FacesContext facesContext) 
 - 
FaceletCompositionContextImplpublic FaceletCompositionContextImpl(FaceletFactory factory, FacesContext facesContext, String base) This constructor is intended for places where the id generation strategy needs to be changed adding a unique base id, like for example on a dynamic component creation.- Parameters:
- factory-
- facesContext-
- base-
 
 
- 
 - 
Method Detail- 
setUniqueIdsIteratorpublic void setUniqueIdsIterator(Iterator<String> uniqueIdsIterator) Description copied from class:FaceletCompositionContextSet the iterator used to retrieve unique ids. since 2.1.7, 2.0.13- Overrides:
- setUniqueIdsIteratorin class- FaceletCompositionContext
 
 - 
initUniqueIdRecordingpublic void initUniqueIdRecording() Description copied from class:FaceletCompositionContextActivater record unique id mode, so an structure will be used to hold those values. since 2.1.7, 2.0.13- Overrides:
- initUniqueIdRecordingin class- FaceletCompositionContext
 
 - 
addUniqueIdpublic void addUniqueId(String uniqueId) Description copied from class:FaceletCompositionContextAdd an unique id to the list if recording is enabled, if recording is not enabled it has no effect. since 2.1.7, 2.0.13- Overrides:
- addUniqueIdin class- FaceletCompositionContext
 
 - 
getUniqueIdFromIteratorpublic String getUniqueIdFromIterator() Description copied from class:FaceletCompositionContextReturn the unique id from the iterator if applies since 2.1.7, 2.0.13- Overrides:
- getUniqueIdFromIteratorin class- FaceletCompositionContext
- Returns:
 
 - 
getUniqueIdListpublic List<String> getUniqueIdList() Description copied from class:FaceletCompositionContextReturn the list of unique ids since 2.1.7, 2.0.13- Overrides:
- getUniqueIdListin class- FaceletCompositionContext
- Returns:
 
 - 
getFaceletFactorypublic FaceletFactory getFaceletFactory() - Specified by:
- getFaceletFactoryin class- FaceletCompositionContext
 
 - 
releasepublic void release(FacesContext facesContext) Description copied from class:FaceletCompositionContextReleases the MyFaceletContext object. This method must only be called by the code that created the MyFaceletContext.- Overrides:
- releasein class- FaceletCompositionContext
 
 - 
getCompositeComponentFromStackpublic UIComponent getCompositeComponentFromStack() Description copied from class:FaceletCompositionContextReturn the composite component being applied on the current facelet. Note this is different to UIComponent.getCurrentCompositeComponent, because a composite component is added to the stack each time a composite:implementation tag handler is applied. This could be used by InsertChildrenHandler and InsertFacetHandler to retrieve the current composite component to be applied.- Specified by:
- getCompositeComponentFromStackin class- FaceletCompositionContext
- Returns:
 
 - 
pushCompositeComponentToStackpublic void pushCompositeComponentToStack(UIComponent parent) - Specified by:
- pushCompositeComponentToStackin class- FaceletCompositionContext
 
 - 
popCompositeComponentToStackpublic void popCompositeComponentToStack() - Specified by:
- popCompositeComponentToStackin class- FaceletCompositionContext
 
 - 
getCompositeComponentLevelpublic int getCompositeComponentLevel() Description copied from class:FaceletCompositionContextReturns the current nesting level of composite components found. If no composite component has been used returns 0.- Overrides:
- getCompositeComponentLevelin class- FaceletCompositionContext
 
 - 
getUniqueIdVendorFromStackpublic UniqueIdVendor getUniqueIdVendorFromStack() Description copied from class:FaceletCompositionContextReturn the latest UniqueIdVendor created from stack. The reason why we need to keep a UniqueIdVendor stack is because we need to look the closest one in ComponentTagHandlerDelegate. Note that facelets tree is built from leafs to root, that means use UIComponent.getParent() does not always return parent components.- Specified by:
- getUniqueIdVendorFromStackin class- FaceletCompositionContext
- Returns:
 
 - 
popUniqueIdVendorToStackpublic void popUniqueIdVendorToStack() - Specified by:
- popUniqueIdVendorToStackin class- FaceletCompositionContext
 
 - 
pushUniqueIdVendorToStackpublic void pushUniqueIdVendorToStack(UniqueIdVendor parent) - Specified by:
- pushUniqueIdVendorToStackin class- FaceletCompositionContext
 
 - 
popEnclosingValidatorIdToStackpublic void popEnclosingValidatorIdToStack() Removes top of stack.- Specified by:
- popEnclosingValidatorIdToStackin class- FaceletCompositionContext
- Since:
- 2.0
 
 - 
pushEnclosingValidatorIdToStackpublic void pushEnclosingValidatorIdToStack(String validatorId, EditableValueHolderAttachedObjectHandler attachedObjectHandler) Description copied from class:FaceletCompositionContextPushes validatorId to the stack of all enclosing validatorIds.- Specified by:
- pushEnclosingValidatorIdToStackin class- FaceletCompositionContext
 
 - 
getEnclosingValidatorIdsAndHandlerspublic Iterator<Map.Entry<String,EditableValueHolderAttachedObjectHandler>> getEnclosingValidatorIdsAndHandlers() Description copied from class:FaceletCompositionContextGets all validationIds with its associated EditableValueHolderAttachedObjectHandler from the stack.- Specified by:
- getEnclosingValidatorIdsAndHandlersin class- FaceletCompositionContext
- Returns:
 
 - 
containsEnclosingValidatorIdpublic boolean containsEnclosingValidatorId(String id) - Specified by:
- containsEnclosingValidatorIdin class- FaceletCompositionContext
- Returns:
 
 - 
isRefreshingTransientBuildpublic boolean isRefreshingTransientBuild() Description copied from class:FaceletCompositionContextCheck if this build is being refreshed, adding transient components and adding/removing components under c:if or c:forEach or not.- Specified by:
- isRefreshingTransientBuildin class- FaceletCompositionContext
- Returns:
 
 - 
isMarkInitialStatepublic boolean isMarkInitialState() Description copied from class:FaceletCompositionContextCheck if this build should be marked as initial state. In other words, all components must call UIComponent.markInitialState.- Specified by:
- isMarkInitialStatein class- FaceletCompositionContext
- Returns:
 
 - 
setMarkInitialStatepublic void setMarkInitialState(boolean value) - Overrides:
- setMarkInitialStatein class- FaceletCompositionContext
 
 - 
isRefreshTransientBuildOnPSSpublic boolean isRefreshTransientBuildOnPSS() Description copied from class:FaceletCompositionContextCheck if the current view will be refreshed with partial state saving. This param is used in two posible events: 1. To notify UIInstruction instances to look for instances moved by cc:insertChildren or cc:insertFacet. 2. To do proper actions when a tag that could change tree structure is applied (c:if, c:forEach...)- Specified by:
- isRefreshTransientBuildOnPSSin class- FaceletCompositionContext
- Returns:
 
 - 
isRefreshTransientBuildOnPSSPreserveStatepublic boolean isRefreshTransientBuildOnPSSPreserveState() - Overrides:
- isRefreshTransientBuildOnPSSPreserveStatein class- FaceletCompositionContext
- Returns:
 
 - 
isBuildingViewMetadatapublic boolean isBuildingViewMetadata() Description copied from class:FaceletCompositionContextCheck if the facelet is building view metadata since 2.1.7, 2.0.13- Overrides:
- isBuildingViewMetadatain class- FaceletCompositionContext
- Returns:
 
 - 
isUsingPSSOnThisViewpublic boolean isUsingPSSOnThisView() Description copied from class:FaceletCompositionContextCheck if we are using partial state saving on this view- Specified by:
- isUsingPSSOnThisViewin class- FaceletCompositionContext
- Returns:
 
 - 
isMarkInitialStateAndIsRefreshTransientBuildOnPSSpublic boolean isMarkInitialStateAndIsRefreshTransientBuildOnPSS() - Specified by:
- isMarkInitialStateAndIsRefreshTransientBuildOnPSSin class- FaceletCompositionContext
- Returns:
 
 - 
getELExpressionCacheModepublic ELExpressionCacheMode getELExpressionCacheMode() Description copied from class:FaceletCompositionContextIndicates if a EL Expression can be or not cached by facelets vdl.- Overrides:
- getELExpressionCacheModein class- FaceletCompositionContext
- Returns:
 
 - 
isWrapTagExceptionsAsContextAwarepublic boolean isWrapTagExceptionsAsContextAware() - Overrides:
- isWrapTagExceptionsAsContextAwarein class- FaceletCompositionContext
- Returns:
 
 - 
addAttachedObjectHandlerpublic void addAttachedObjectHandler(UIComponent compositeComponentParent, AttachedObjectHandler handler) Description copied from class:FaceletCompositionContextAdd to the composite component parent this handler, so it will be processed later when ViewDeclarationLanguage.retargetAttachedObjects is called. Tag Handlers exposing attached objects should call this method to expose them when the parent to be applied is a composite components.- Specified by:
- addAttachedObjectHandlerin class- FaceletCompositionContext
 
 - 
removeAttachedObjectHandlerspublic void removeAttachedObjectHandlers(UIComponent compositeComponentParent) Description copied from class:FaceletCompositionContextRemove from the composite component parent the list of attached handlers.- Specified by:
- removeAttachedObjectHandlersin class- FaceletCompositionContext
 
 - 
getAttachedObjectHandlerspublic List<AttachedObjectHandler> getAttachedObjectHandlers(UIComponent compositeComponentParent) Description copied from class:FaceletCompositionContextRetrieve the list of object handlers attached to a composite component parent.- Specified by:
- getAttachedObjectHandlersin class- FaceletCompositionContext
 
 - 
addMethodExpressionTargetedpublic void addMethodExpressionTargeted(UIComponent targetedComponent, String attributeName, Object backingValue) Description copied from class:FaceletCompositionContextAdd a method expression as targeted for the provided composite component- Specified by:
- addMethodExpressionTargetedin class- FaceletCompositionContext
- backingValue- A value that could be useful to revert its effects.
 
 - 
isMethodExpressionAttributeAppliedpublic boolean isMethodExpressionAttributeApplied(UIComponent compositeComponentParent, String attributeName) Description copied from class:FaceletCompositionContextCheck if the MethodExpression attribute has been applied using vdl.retargetMethodExpression- Specified by:
- isMethodExpressionAttributeAppliedin class- FaceletCompositionContext
- Returns:
 
 - 
markMethodExpressionAttributepublic void markMethodExpressionAttribute(UIComponent compositeComponentParent, String attributeName) Description copied from class:FaceletCompositionContextMark the MethodExpression attribute as applied using vdl.retargetMethodExpression- Specified by:
- markMethodExpressionAttributein class- FaceletCompositionContext
 
 - 
clearMethodExpressionAttributepublic void clearMethodExpressionAttribute(UIComponent compositeComponentParent, String attributeName) Description copied from class:FaceletCompositionContextClear the MethodExpression attribute to call vdl.retargetMethodExpression again- Specified by:
- clearMethodExpressionAttributein class- FaceletCompositionContext
 
 - 
removeMethodExpressionTargetedpublic Object removeMethodExpressionTargeted(UIComponent targetedComponent, String attributeName) Description copied from class:FaceletCompositionContextRemove a method expression as targeted for the provided composite component- Specified by:
- removeMethodExpressionTargetedin class- FaceletCompositionContext
- Returns:
- A value that could be useful to revert its effects.
 
 - 
markForDeletionpublic void markForDeletion(UIComponent component) Description copied from class:FaceletCompositionContextMarks all direct children and Facets with an attribute for deletion.- Specified by:
- markForDeletionin class- FaceletCompositionContext
- Parameters:
- component- UIComponent to mark
- See Also:
- FaceletCompositionContext.finalizeForDeletion(UIComponent)
 
 - 
removeComponentForDeletionpublic void removeComponentForDeletion(UIComponent component) - Overrides:
- removeComponentForDeletionin class- FaceletCompositionContext
 
 - 
finalizeForDeletionpublic void finalizeForDeletion(UIComponent component) Description copied from class:FaceletCompositionContextUsed in conjunction with markForDeletion where any UIComponent marked will be removed.- Specified by:
- finalizeForDeletionin class- FaceletCompositionContext
- Parameters:
- component- UIComponent to finalize
 
 - 
markRelocatableResourceForDeletionpublic void markRelocatableResourceForDeletion(UIComponent component) Description copied from class:FaceletCompositionContextMarks the given resource for deletion. Is to be used for relocatable components instead ofFaceletCompositionContext.markForDeletion(UIComponent).- Overrides:
- markRelocatableResourceForDeletionin class- FaceletCompositionContext
- Parameters:
- component- UIComponent to finalize
 
 - 
finalizeRelocatableResourcesForDeletionpublic void finalizeRelocatableResourcesForDeletion(UIViewRoot root) Description copied from class:FaceletCompositionContextUsed to clean up all unused relocatable components on the root component.- Overrides:
- finalizeRelocatableResourcesForDeletionin class- FaceletCompositionContext
- Parameters:
- root- UIComponent to finalize (root component)
 
 - 
startComponentUniqueIdSectionpublic String startComponentUniqueIdSection() Description copied from class:FaceletCompositionContextStart a new unique id section, which means a new counter is used to generate unique ids to components- Overrides:
- startComponentUniqueIdSectionin class- FaceletCompositionContext
- Returns:
 
 - 
startComponentUniqueIdSectionpublic String startComponentUniqueIdSection(String base) Description copied from class:FaceletCompositionContextStart a new unique id section, which means a new counter is used to generate unique ids to components, but appending a base to the new counter.- Overrides:
- startComponentUniqueIdSectionin class- FaceletCompositionContext
- Returns:
 
 - 
incrementUniqueIdpublic void incrementUniqueId() Description copied from class:FaceletCompositionContextIncrement the unique id without construct it. since 2.1.7, 2.0.13- Overrides:
- incrementUniqueIdin class- FaceletCompositionContext
 
 - 
generateUniqueIdpublic String generateUniqueId() Description copied from class:FaceletCompositionContextGenerate a unique id that will be used later to derive a unique id per tag by FaceletContext.generateUniqueId(). This generator ensures uniqueness per view but FaceletContext.generateUniqueId() ensures uniqueness per view and per facelet hierarchy, so different included facelets will generate different ids.- Overrides:
- generateUniqueIdin class- FaceletCompositionContext
- Returns:
 
 - 
generateUniqueIdpublic void generateUniqueId(StringBuilder builderToAdd) - Overrides:
- generateUniqueIdin class- FaceletCompositionContext
 
 - 
generateUniqueComponentIdpublic String generateUniqueComponentId() Description copied from class:FaceletCompositionContextGenerate a unique id for component instances.- Overrides:
- generateUniqueComponentIdin class- FaceletCompositionContext
- Returns:
 
 - 
incrementUniqueComponentIdpublic void incrementUniqueComponentId() - Overrides:
- incrementUniqueComponentIdin class- FaceletCompositionContext
 
 - 
endComponentUniqueIdSectionpublic void endComponentUniqueIdSection() Description copied from class:FaceletCompositionContextEnds the current unique id section, so the previous counter will be used to generate unique ids to components.- Overrides:
- endComponentUniqueIdSectionin class- FaceletCompositionContext
 
 - 
endComponentUniqueIdSectionpublic void endComponentUniqueIdSection(String base) - Overrides:
- endComponentUniqueIdSectionin class- FaceletCompositionContext
 
 - 
startMetadataSectionpublic void startMetadataSection() Description copied from class:FaceletCompositionContextCall this method to indicate a f:metadata section is about to be processed since 2.1.7, 2.0.13- Overrides:
- startMetadataSectionin class- FaceletCompositionContext
 
 - 
endMetadataSectionpublic void endMetadataSection() Description copied from class:FaceletCompositionContextCall this method to indicate f:metadata section has been already processed since 2.1.7, 2.0.13- Overrides:
- endMetadataSectionin class- FaceletCompositionContext
 
 - 
isInMetadataSectionpublic boolean isInMetadataSection() Description copied from class:FaceletCompositionContextCheck if the component is created inside f:metadata section since 2.1.7, 2.0.13- Overrides:
- isInMetadataSectionin class- FaceletCompositionContext
- Returns:
 
 - 
isRefreshingSectionpublic boolean isRefreshingSection() Description copied from class:FaceletCompositionContextCheck if the section to be processed is being refreshed. since 2.1.7, 2.0.13- Overrides:
- isRefreshingSectionin class- FaceletCompositionContext
- Returns:
 
 - 
getSharedStringBuilderpublic StringBuilder getSharedStringBuilder() - Overrides:
- getSharedStringBuilderin class- FaceletCompositionContext
 
 - 
isDynamicCompositeComponentHandlerpublic boolean isDynamicCompositeComponentHandler() - Overrides:
- isDynamicCompositeComponentHandlerin class- FaceletCompositionContext
 
 - 
setDynamicCompositeComponentHandlerpublic void setDynamicCompositeComponentHandler(boolean value) - Overrides:
- setDynamicCompositeComponentHandlerin class- FaceletCompositionContext
 
 - 
pushDynamicComponentSectionpublic void pushDynamicComponentSection(String base) - Overrides:
- pushDynamicComponentSectionin class- FaceletCompositionContext
 
 - 
popDynamicComponentSectionpublic void popDynamicComponentSection() - Overrides:
- popDynamicComponentSectionin class- FaceletCompositionContext
 
 - 
isDynamicComponentTopLevelpublic boolean isDynamicComponentTopLevel() Description copied from class:FaceletCompositionContextCheck if the algorithm is applying a dynamic component and the current component is the top level one. This is necessary to avoid remove/add the component under a refresh and in that way change the position of the component in the tree. Remember facelets algorithm removes/add components to sort the components under a refresh, but in this case, it is up to the user to put the component in the tree, so the idea is do not make interference with the user's code. Note if the dynamic content is wrapped by a generated panel, the top level component is the wrapper itself, which has no attached tag handler.- Overrides:
- isDynamicComponentTopLevelin class- FaceletCompositionContext
- Returns:
 
 - 
setDynamicComponentTopLevelpublic void setDynamicComponentTopLevel(boolean value) - Overrides:
- setDynamicComponentTopLevelin class- FaceletCompositionContext
 
 - 
isDynamicComponentSectionpublic boolean isDynamicComponentSection() Description copied from class:FaceletCompositionContextIndicate if the current facelet section is a dynamic component section, which means it was added to the component tree using vdl.createComponent(...);- Overrides:
- isDynamicComponentSectionin class- FaceletCompositionContext
- Returns:
 
 - 
setViewRootpublic void setViewRoot(UIViewRoot root) - Overrides:
- setViewRootin class- FaceletCompositionContext
 
 - 
getViewRootpublic UIViewRoot getViewRoot(FacesContext facesContext) - Overrides:
- getViewRootin class- FaceletCompositionContext
 
 - 
getVisitContextFactorypublic VisitContextFactory getVisitContextFactory() - Overrides:
- getVisitContextFactoryin class- FaceletCompositionContext
 
 
- 
 
-