Examples of AjaxViewRoot


Examples of org.ajax4jsf.component.AjaxViewRoot

  public void renderView(FacesContext context, UIViewRoot root)
      throws IOException, FacesException {
    AjaxContext ajaxContext = AjaxContext.getCurrentInstance(context);
    // Broadcast Ajax events before rendering, to setup areas to update.
    if (root instanceof AjaxViewRoot) {
      AjaxViewRoot ajaxRoot = (AjaxViewRoot) root;
      Map requestMap = context.getExternalContext().getRequestMap();
      // broadcast ajax events before render response.
      if (ajaxContext.isAjaxRequest(context)
          && null == requestMap
              .get(AjaxRendererUtils.AJAX_AREAS_RENDERED)) {
View Full Code Here

Examples of org.ajax4jsf.component.AjaxViewRoot

  public void renderView(FacesContext context, UIViewRoot root)
      throws IOException, FacesException {
    AjaxContext ajaxContext = AjaxContext.getCurrentInstance(context);
    // Broadcast Ajax events before rendering, to setup areas to update.
    if (root instanceof AjaxViewRoot) {
      AjaxViewRoot ajaxRoot = (AjaxViewRoot) root;
      // broadcast ajax events before render response.
      if (ajaxContext.isAjaxRequest()) {
        processAjaxEvents(context, ajaxRoot);
        if(ajaxContext.isSelfRender()){
          // Render view directly.
View Full Code Here

Examples of org.ajax4jsf.component.AjaxViewRoot

  public void renderView(FacesContext context, UIViewRoot root)
      throws IOException, FacesException {
    AjaxContext ajaxContext = AjaxContext.getCurrentInstance(context);
    // Broadcast Ajax events before rendering, to setup areas to update.
    if (root instanceof AjaxViewRoot) {
      AjaxViewRoot ajaxRoot = (AjaxViewRoot) root;
      // broadcast ajax events before render response.
      if (ajaxContext.isAjaxRequest()) {
        processAjaxEvents(context, ajaxRoot);
        if(ajaxContext.isSelfRender()){
          // Render view directly.
View Full Code Here

Examples of org.springframework.faces.ui.AjaxViewRoot

    }
  }

  private JsfView createJsfView(UIViewRoot root, Lifecycle lifecycle, RequestContext context) {
    if (isSpringJavascriptAjaxRequest(context.getExternalContext())) {
      return new JsfView(new AjaxViewRoot(root), lifecycle, context);
    } else {
      return new JsfView(root, lifecycle, context);
    }
  }
View Full Code Here

Examples of org.springframework.faces.ui.AjaxViewRoot

    Lifecycle lifecycle = new NoEventLifecycle(jsfMock.lifecycle());

    UIViewRoot existingRoot = new UIViewRoot();
    existingRoot.setViewId(VIEW_ID);
    AjaxViewRoot ajaxRoot = new AjaxViewRoot(existingRoot);

    EasyMock.replay(new Object[] { context, flowExecutionContext, flowMap, flashScope });

    JsfView restoredView = new JsfView(ajaxRoot, lifecycle, context);
    restoredView.setRestored(true);
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.