Package org.hdiv.events

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


    // Remove existing listener
    this.removeListeners();

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

  /* 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

    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

        // 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

Related Classes of org.hdiv.events.HDIVFacesEventListener

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.