Class RefreshDynamicComponentListener
- java.lang.Object
-
- org.apache.myfaces.view.facelets.compiler.RefreshDynamicComponentListener
-
- All Implemented Interfaces:
StateHolder,ComponentSystemEventListener,FacesListener,EventListener
public final class RefreshDynamicComponentListener extends Object implements ComponentSystemEventListener, StateHolder
This listener must be attached to PostRestoreStateEvent so when the view is restored, the algorithm refresh the component that was created using facelets, restoring the transient markup.- Author:
- lu4242
-
-
Constructor Summary
Constructors Constructor Description RefreshDynamicComponentListener()RefreshDynamicComponentListener(String taglibURI, String tagName, Map<String,Object> attributes, String baseKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisTransient()voidprocessEvent(ComponentSystemEvent event)voidrestoreState(FacesContext context, Object state)ObjectsaveState(FacesContext context)voidsetTransient(boolean newTransientValue)
-
-
-
Method Detail
-
processEvent
public void processEvent(ComponentSystemEvent event)
- Specified by:
processEventin interfaceComponentSystemEventListener
-
saveState
public Object saveState(FacesContext context)
- Specified by:
saveStatein interfaceStateHolder
-
restoreState
public void restoreState(FacesContext context, Object state)
- Specified by:
restoreStatein interfaceStateHolder
-
isTransient
public boolean isTransient()
- Specified by:
isTransientin interfaceStateHolder
-
setTransient
public void setTransient(boolean newTransientValue)
- Specified by:
setTransientin interfaceStateHolder
-
-