public class BaseExtendedVisitContext extends ExtendedVisitContext
ExtendedVisitContext that allows track visit of implicitly processed subtrees and adds support for shortIds| Modifier and Type | Class and Description |
|---|---|
protected static interface |
BaseExtendedVisitContext.ClientIdTrackingStrategy
Allows to track what subtrees and shortIds were visited
|
| Modifier and Type | Field and Description |
|---|---|
protected BaseExtendedVisitContext.ClientIdTrackingStrategy |
addNode
Tracking strategy that adds a node to the list of tracked subtree/shortIds
|
protected BaseExtendedVisitContext.ClientIdTrackingStrategy |
removeNode
Tracking strategy that removes a node from the list of tracked subtree/shortIds
|
META_COMPONENT_ID| Constructor and Description |
|---|
BaseExtendedVisitContext(javax.faces.component.visit.VisitContext visitContextToWrap,
javax.faces.context.FacesContext facesContext,
Collection<String> clientIds,
Set<javax.faces.component.visit.VisitHint> hints,
ExtendedVisitContextMode contextMode)
Creates a PartialVisitorContext instance with the specified hints.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDirectSubtreeIdsToVisitForImplicitComponents(javax.faces.component.UIComponent component,
Set<String> result)
Allows to add subtrees that contains implicit components to list IDs to visit
|
javax.faces.component.visit.VisitContext |
createNamingContainerVisitContext(javax.faces.component.UIComponent component,
Collection<String> directIds) |
Collection<String> |
getDirectSubtreeIdsToVisit(javax.faces.component.UIComponent component) |
Collection<String> |
getIdsToVisit() |
Collection<String> |
getSubtreeIdsToVisit(javax.faces.component.UIComponent component) |
protected boolean |
hasImplicitSubtreeIdsToVisit(javax.faces.component.UIComponent component)
Return true whether this
VisitContext allows to visit implicit IDs |
javax.faces.component.visit.VisitResult |
invokeVisitCallback(javax.faces.component.UIComponent component,
javax.faces.component.visit.VisitCallback callback) |
protected javax.faces.component.visit.VisitResult |
invokeVisitCallbackForImplicitComponent(javax.faces.component.UIComponent component,
javax.faces.component.visit.VisitCallback callback) |
protected boolean |
shouldCompleteOnEmptyIds() |
protected void |
visitClientId(String clientId,
BaseExtendedVisitContext.ClientIdTrackingStrategy tracker)
Use the
BaseExtendedVisitContext.ClientIdTrackingStrategy implementations to either add or remove subtrees/shortIds collections |
buildExtendedClientId, buildExtendedComponentId, getFacesContext, getVisitMode, getWrapped, invokeMetaComponentVisitCallbackprotected final BaseExtendedVisitContext.ClientIdTrackingStrategy addNode
protected final BaseExtendedVisitContext.ClientIdTrackingStrategy removeNode
public BaseExtendedVisitContext(javax.faces.component.visit.VisitContext visitContextToWrap,
javax.faces.context.FacesContext facesContext,
Collection<String> clientIds,
Set<javax.faces.component.visit.VisitHint> hints,
ExtendedVisitContextMode contextMode)
facesContext - the FacesContext for the current requestclientIds - the client ids of the components to visithints - a the VisitHints for this visitNullPointerException - if facesContext is nullpublic javax.faces.component.visit.VisitResult invokeVisitCallback(javax.faces.component.UIComponent component,
javax.faces.component.visit.VisitCallback callback)
invokeVisitCallback in class javax.faces.component.visit.VisitContextWrapperVisitContext.invokeVisitCallback()protected javax.faces.component.visit.VisitResult invokeVisitCallbackForImplicitComponent(javax.faces.component.UIComponent component,
javax.faces.component.visit.VisitCallback callback)
protected void visitClientId(String clientId, BaseExtendedVisitContext.ClientIdTrackingStrategy tracker)
BaseExtendedVisitContext.ClientIdTrackingStrategy implementations to either add or remove subtrees/shortIds collectionspublic Collection<String> getIdsToVisit()
getIdsToVisit in class javax.faces.component.visit.VisitContextWrapperVisitContext.getIdsToVisit()protected boolean hasImplicitSubtreeIdsToVisit(javax.faces.component.UIComponent component)
VisitContext allows to visit implicit IDspublic Collection<String> getSubtreeIdsToVisit(javax.faces.component.UIComponent component)
getSubtreeIdsToVisit in class javax.faces.component.visit.VisitContextWrapperpublic Collection<String> getDirectSubtreeIdsToVisit(javax.faces.component.UIComponent component)
getDirectSubtreeIdsToVisit in class ExtendedVisitContextprotected void addDirectSubtreeIdsToVisitForImplicitComponents(javax.faces.component.UIComponent component,
Set<String> result)
protected boolean shouldCompleteOnEmptyIds()
public javax.faces.component.visit.VisitContext createNamingContainerVisitContext(javax.faces.component.UIComponent component,
Collection<String> directIds)
createNamingContainerVisitContext in class ExtendedVisitContextCopyright © 2014 JBoss by Red Hat. All Rights Reserved.