Package javax.faces.event

Examples of javax.faces.event.ComponentSystemEventListener


            if (listeners != null && !listeners.isEmpty())
            {
                for (Iterator<SystemEventListener> it = listeners.iterator(); it.hasNext(); )
                {
                    ComponentSystemEventListener listener
                            = ((EventListenerWrapper) it.next()).getComponentSystemEventListener();
                    if (listener != null && listener.equals(componentListener))
                    {
                        it.remove();
                        break;
                    }
                }
View Full Code Here


           
            if (listeners != null && !listeners.isEmpty())
            {
                for (Iterator<SystemEventListener> it = listeners.iterator(); it.hasNext();)
                {
                    ComponentSystemEventListener listener = ((EventListenerWrapper) it.next()).getComponentSystemEventListener();
                    if (listener != null && listener.equals(componentListener))
                    {
                        it.remove();
                        break;
                    }
                }
View Full Code Here

        if (listeners != null && !listeners.isEmpty()) {
            for (Iterator<SystemEventListener> i = listeners.iterator(); i.hasNext();) {
                SystemEventListener item = i.next();
                ComponentSystemEventListenerAdapter csla =
                      (ComponentSystemEventListenerAdapter) item;
                ComponentSystemEventListener l = csla.getWrapped();
                if (l.equals(componentListener)) {
                    i.remove();
                    break;
                }
            }
        }
View Full Code Here

    // If the wrapped renderer has the ability to listen to component system events, then invoke the event
    // processing on the wrapped renderer. This is necessary when wrapping the Mojarra ScriptRenderer or
    // StylesheetRenderer because they extend ScriptStyleBaseRenderer which attempts to add the component
    // associated with the specified event as a resource on the view root.
    if (wrappedRenderer instanceof ComponentSystemEventListener) {
      ComponentSystemEventListener wrappedListener = (ComponentSystemEventListener) wrappedRenderer;
      wrappedListener.processEvent(event);
    }
    else {
      logger.debug("Wrapped renderer=[{0}] does not implement ComponentSystemEventListener", wrappedRenderer);
    }
  }
View Full Code Here

    FacesContext facesContext = FacesContext.getCurrentInstance();
    Renderer delegateRenderer = getDelegateRenderer(facesContext);

    if (delegateRenderer instanceof ComponentSystemEventListener) {
      ComponentSystemEventListener delegateComponentSystemEventListener = (ComponentSystemEventListener)
        delegateRenderer;
      delegateComponentSystemEventListener.processEvent(componentSystemEvent);
    }
  }
View Full Code Here

TOP

Related Classes of javax.faces.event.ComponentSystemEventListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.