Package com.sun.faces.context
Class StateContext.StatelessAddRemoveListener
- java.lang.Object
-
- com.sun.faces.context.StateContext.NoopAddRemoveListener
-
- com.sun.faces.context.StateContext.StatelessAddRemoveListener
-
- All Implemented Interfaces:
FacesListener
,SystemEventListener
,EventListener
- Enclosing class:
- StateContext
public class StateContext.StatelessAddRemoveListener extends StateContext.NoopAddRemoveListener
An AddRemoveListener that implements the new dynamic component strategy where no state is managed by the listener itself. Instead, we use expando attributes on the dynamic components (and their parents) to track/preserve the dynamic nature of these components.
-
-
Constructor Summary
Constructors Constructor Description StatelessAddRemoveListener(FacesContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
handleAdd(FacesContext context, UIComponent component)
Handle the add.protected void
handleRemove(FacesContext context, UIComponent component)
Handle the remove.-
Methods inherited from class com.sun.faces.context.StateContext.NoopAddRemoveListener
getDynamicActions, getDynamicComponents
-
-
-
-
Constructor Detail
-
StatelessAddRemoveListener
public StatelessAddRemoveListener(FacesContext context)
-
-
Method Detail
-
handleRemove
protected void handleRemove(FacesContext context, UIComponent component)
Handle the remove.- Overrides:
handleRemove
in classStateContext.NoopAddRemoveListener
- Parameters:
context
- the Faces context.component
- the UI component to add to the list as a REMOVE.
-
handleAdd
protected void handleAdd(FacesContext context, UIComponent component)
Handle the add.- Overrides:
handleAdd
in classStateContext.NoopAddRemoveListener
- Parameters:
context
- the Faces context.component
- the UI component to add to the list as an ADD.
-
-