org.apache.myfaces.view.facelets.tag.composite
Class CreateDynamicCompositeComponentListener

java.lang.Object
  extended by org.apache.myfaces.view.facelets.tag.composite.CreateDynamicCompositeComponentListener
All Implemented Interfaces:
EventListener, StateHolder, ComponentSystemEventListener, FacesListener

public class CreateDynamicCompositeComponentListener
extends Object
implements ComponentSystemEventListener, StateHolder

This listener must be attached to PostAddToViewEvent, so when composite component is added to the view, the algorithm that create the composite component content is executed.

Author:
lu4242

Constructor Summary
CreateDynamicCompositeComponentListener()
           
CreateDynamicCompositeComponentListener(String taglibURI, String tagName, Map<String,Object> attributes, String baseKey)
           
 
Method Summary
 boolean isTransient()
           
 void processEvent(ComponentSystemEvent event)
           
 void restoreState(FacesContext context, Object state)
           
 Object saveState(FacesContext context)
           
 void setTransient(boolean newTransientValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateDynamicCompositeComponentListener

public CreateDynamicCompositeComponentListener(String taglibURI,
                                               String tagName,
                                               Map<String,Object> attributes,
                                               String baseKey)

CreateDynamicCompositeComponentListener

public CreateDynamicCompositeComponentListener()
Method Detail

processEvent

public void processEvent(ComponentSystemEvent event)
Specified by:
processEvent in interface ComponentSystemEventListener

saveState

public Object saveState(FacesContext context)
Specified by:
saveState in interface StateHolder

restoreState

public void restoreState(FacesContext context,
                         Object state)
Specified by:
restoreState in interface StateHolder

isTransient

public boolean isTransient()
Specified by:
isTransient in interface StateHolder

setTransient

public void setTransient(boolean newTransientValue)
Specified by:
setTransient in interface StateHolder


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.