public class SessionChangeManager extends ChangeManager
Constructor and Description |
---|
SessionChangeManager() |
Modifier and Type | Method and Description |
---|---|
void |
addComponentChange(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
ComponentChange change)
Add a ComponentChange to this current request for a specified component.
|
protected void |
addComponentChangeImpl(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent targetComponent,
ComponentChange componentChange)
Adds a ComponentChange and registers against the supplied component.
|
void |
applyComponentChangesForCurrentView(javax.faces.context.FacesContext context)
Applies all the ComponentChanges added so far for the current view.
|
void |
applyComponentChangesForSubtree(javax.faces.context.FacesContext context,
javax.faces.component.NamingContainer root)
Applies the ComponentChanges added so far for components underneath
the specified NamingContainer.
|
void |
applySimpleComponentChanges(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Apply non-cross-component changes to a component in its original location.
|
protected Document |
getDocument(javax.faces.context.FacesContext context)
We don't support DocumentChange persistence
|
protected void |
persistDocumentChanges(javax.faces.context.FacesContext facesContext) |
protected boolean |
supportsDocumentPersistence(javax.faces.context.FacesContext context)
Returns true if we can support Document-based Persistence
in this ChangeManager.
|
addDocumentChange, createDocumentChange, registerDocumentFactory
public void applyComponentChangesForCurrentView(javax.faces.context.FacesContext context)
applyComponentChangesForCurrentView
in class ChangeManager
context
- The FacesContext instance for the current request.public void applyComponentChangesForSubtree(javax.faces.context.FacesContext context, javax.faces.component.NamingContainer root)
applyComponentChangesForSubtree
in class ChangeManager
context
- The FacesContext instance for the current request.root
- The NamingContainer that contains the component subtree
to which ComponentChanges should be applied. If null, all changes are
applied.public void applySimpleComponentChanges(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
applySimpleComponentChanges
in class ChangeManager
component
- Component to apply the simple changes toprotected void addComponentChangeImpl(javax.faces.context.FacesContext context, javax.faces.component.UIComponent targetComponent, ComponentChange componentChange)
context
- The FacesContext instance for the current request.targetComponent
- The target component against which this change needs
to be registered and applied later on.componentChange
- The ComponentChange to add.protected Document getDocument(javax.faces.context.FacesContext context)
public void addComponentChange(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, ComponentChange change)
addComponentChange
in class ChangeManager
protected void persistDocumentChanges(javax.faces.context.FacesContext facesContext)
protected boolean supportsDocumentPersistence(javax.faces.context.FacesContext context)
getDocument
in order to enable Document-based Persistence.context
- Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.