Gang - As discussed in the following issue:
http://issues.apache.org/jira/browse/TRINIDAD-1488 I need the ability to apply ChangeManager component changes to a specific component subtree (within a NamingContainer) as opposed to the entire view. The goal is to be able to apply ChangeManager component changes to component subtrees that are populated dynamically, after applyComponentChangesForCurrentView() has been called. However, currently ChangeManager only provides: /** * Applies all the ComponentChanges added so far for the current view. * Developers should not need to call this method. Internal implementation * will call it as the component tree is built and is ready to take changes. * @param facesContext The FacesContext instance for the current request. */ public void applyComponentChangesForCurrentView(FacesContext facesContext) I would like to introduce a new method to handle the subtree case, eg: /** * Applies the ComponentChanges added so far for components underneath * the specified NamingContainer component. * Developers should not need to call this method. Internal implementation * will call it as the component tree is built and is ready to take changes. * @param facesContext The FacesContext instance for the current request. * @param root A NamingContainer component that contains the subtree * to which ComponentChanges should be applied. If null, all changes are * applied. * @throws IllegalArgumentException if the root component is not a * NamingContainer instance. */ public void applyComponentChangesForSubtree( FacesContext facesContext, UIComponent root ) Comments/questions? Andy
