Examples of HDIVFacesEventListener


Examples of org.hdiv.events.HDIVFacesEventListener

    // Remove existing listener
    this.removeListeners();

    // Add the listener
    HDIVFacesEventListener eventListener = HDIVUtilJsf.getFacesEventListener(context);
    this.addFacesListener(eventListener);
  }
View Full Code Here

Examples of org.hdiv.events.HDIVFacesEventListener

    // Remove existing listener
    this.removeListeners();

    // Add the listener
    HDIVFacesEventListener eventListener = HDIVUtilJsf.getFacesEventListener(context);
    this.addFacesListener(eventListener);
  }
View Full Code Here

Examples of org.hdiv.events.HDIVFacesEventListener

  /* HDIVFacesEventListener */

  public static HDIVFacesEventListener getFacesEventListener(FacesContext facesContext) {

    HDIVFacesEventListener newFacesEventListener = (HDIVFacesEventListener) facesContext.getExternalContext()
        .getApplicationMap().get(FACESEVENTLISTENER_SERVLETCONTEXT_KEY);

    if (newFacesEventListener == null) {
      throw new HDIVException(
          "HDIVFacesEventListener object has not been initialized correctly in servletContext.");
View Full Code Here

Examples of org.hdiv.events.HDIVFacesEventListener

    EditableValidator editableValidator = new EditableValidator();
    editableValidator.setHdivConfig(this.config);

    // EventListener instance
    HDIVFacesEventListener listener = new HDIVFacesEventListener();
    listener.setConfig(this.config);
    listener.setLogger(this.logger);
    listener.setHtmlInputHiddenValidator(htmlInputHiddenValidator);
    listener.setRequestParamValidator(requestParameterValidator);
    listener.setUiCommandValidator(uiCommandValidator);
    listener.setEditableValidator(editableValidator);
    return listener;
  }
View Full Code Here

Examples of org.hdiv.events.HDIVFacesEventListener

        // Check not supported features
        this.checkSupportedFeatures(context);

        // Get listener instances
        WebApplicationContext wac = FacesContextUtils.getRequiredWebApplicationContext(context);
        HDIVFacesEventListener facesEventListener = wac.getBean(HDIVFacesEventListener.class);

        // It is added to the servletContext to be able to consume it from components
        HDIVUtilJsf.setFacesEventListener(facesEventListener, context);
      }
    }
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.