- Type Parameters:
T
- The type of UIComponent that this filter can keep references to
- All Implemented Interfaces:
- Serializable
public abstract class ComponentReferencingComponentChangeFilter<T extends javax.faces.component.UIComponent>
extends ComponentChangeFilter
ComponentChangeFilter implementation that keeps reference to a Component.
It is not appropriate for listeners to hold references to UIComponent instances beyond the request scope. This filter
implementation converts the supplied component into a ComponentReference giving two advantages
1. Listeners can hold on to such filters beyond request scope
2. Takes care of serialization of the referenced component
One of the uses of this class is to keep a reference to a root of a component subtree, and then filter
ComponentChanges based on whether the target component of the ComponentChange belongs to the subtree.
- See Also:
ComponentReference
,
Serialized Form