Package javax.faces.component

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.