Home   Up About   Documents   Products  

JSF @ListenerFor

The @ListenerFor annotation allows you to register a component/renderer as a listener for a specific system event.

  @ListenerFor(systemEventClass=PostAddToViewEvent.class)
  public class MyComponent extends UIComponentBase implements ComponentSystemEventListener {
    /*
     * @param event the event to handle.
     */
    public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
    }
  }

Copyright © 2003-2009 Manorrock. All Rights Reserved.