Examples of unsubscribeFromEvent()


Examples of javax.faces.application.Application.unsubscribeFromEvent()

        listener.reset();
        assertTrue(!listener.wasProcessEventInvoked());
        root.getViewMap(false);
        assertTrue(!listener.wasProcessEventInvoked());

        app.unsubscribeFromEvent(PostConstructViewMapEvent.class,
                                 UIViewRoot.class,
                                 listener);
        app.unsubscribeFromEvent(PreDestroyViewMapEvent.class,
                                 UIViewRoot.class,
                                 listener);
View Full Code Here

Examples of javax.faces.application.Application.unsubscribeFromEvent()

        assertTrue(!listener.wasProcessEventInvoked());

        app.unsubscribeFromEvent(PostConstructViewMapEvent.class,
                                 UIViewRoot.class,
                                 listener);
        app.unsubscribeFromEvent(PreDestroyViewMapEvent.class,
                                 UIViewRoot.class,
                                 listener);

        app.subscribeToEvent(PostConstructViewMapEvent.class,
                             listener);
View Full Code Here

Examples of javax.faces.component.UIComponent.unsubscribeFromEvent()

      public void invoke() {
        // We can't unsubscribe immediately inside processEvent() itself, as it would otherwise end up in a
        // ConcurrentModificationException while JSF is iterating over all system event listeners.
        // The unsubscribe is necessary in order to avoid InstantiationException on this tag during restore
        // view of a postback, because ComponentSystemEventListener instances are also saved in JSF view state.
        component.unsubscribeFromEvent(PostValidateEvent.class, ViewParamValidationFailed.this);
      }
    });

    if (component instanceof UIViewParameter ? ((UIViewParameter) component).isValid() : !context.isValidationFailed()) {
      return; // Validation has not failed.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.