Examples of initView()


Examples of javax.faces.application.ViewHandler.initView()

        // init the View
        Application application = facesContext.getApplication();
        ViewHandler viewHandler = application.getViewHandler();
       
        // Call initView() on the ViewHandler. This will set the character encoding properly for this request.
        viewHandler.initView(facesContext);

        UIViewRoot viewRoot = facesContext.getViewRoot();

        RestoreViewSupport restoreViewSupport = getRestoreViewSupport();
View Full Code Here

Examples of javax.faces.application.ViewHandler.initView()

        }

        // init the View
        Application application = facesContext.getApplication();
        ViewHandler viewHandler = application.getViewHandler();
        viewHandler.initView(facesContext);

        UIViewRoot viewRoot = facesContext.getViewRoot();

        RestoreViewSupport restoreViewSupport = getRestoreViewSupport();
       
View Full Code Here

Examples of javax.faces.application.ViewHandler.initView()

        // this won't be true when this method is called after a transition from one view-state to another
        JsfUtils.notifyBeforeListeners(PhaseId.RESTORE_VIEW, lifecycle, facesContext);
      }
      ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
      if (JsfUtils.isAtLeastJsf12() && !JsfUtils.isPortlet(facesContext)) {
        viewHandler.initView(facesContext);
      }
      JsfView view;
      String viewName = (String) viewIdExpression.getValue(context);
      if (viewAlreadySet(facesContext)) {
        if (logger.isDebugEnabled()) {
View Full Code Here

Examples of javax.faces.application.ViewHandler.initView()

    JsfUtils.notifyBeforeListeners(PhaseId.RESTORE_VIEW, facesLifecycle, facesContext);

    ViewHandler viewHandler = facesContext.getApplication().getViewHandler();

    if (JsfUtils.isAtLeastJsf12() && !JsfUtils.isPortlet(facesContext)) {
      viewHandler.initView(facesContext);
    }

    UIViewRoot viewRoot = viewHandler.createView(facesContext, getUrl());
    Assert.notNull(viewRoot, "A JSF view could not be created for " + getUrl());
    viewRoot.setLocale(RequestContextUtils.getLocale(request));
View Full Code Here

Examples of javax.faces.application.ViewHandler.initView()

        }

        // init the View
        Application application = facesContext.getApplication();
        ViewHandler viewHandler = application.getViewHandler();
        viewHandler.initView(facesContext);

        UIViewRoot viewRoot = facesContext.getViewRoot();

        RestoreViewSupport restoreViewSupport = getRestoreViewSupport();
       
View Full Code Here

Examples of javax.faces.application.ViewHandler.initView()

  }

  private ViewHandler getViewHandler(FacesContext facesContext) {
    ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
    if (!isPortletRequest(facesContext)) {
      viewHandler.initView(facesContext);
    }
    return viewHandler;
  }

  private boolean viewAlreadySet(FacesContext facesContext, String viewName) {
View Full Code Here

Examples of javax.faces.application.ViewHandler.initView()

    JsfUtils.notifyBeforeListeners(PhaseId.RESTORE_VIEW, this.facesLifecycle, facesContext);

    ViewHandler viewHandler = facesContext.getApplication().getViewHandler();

    if (!isPortletRequest(facesContext)) {
      viewHandler.initView(facesContext);
    }

    UIViewRoot viewRoot = viewHandler.createView(facesContext, getUrl());
    Assert.notNull(viewRoot, "A JSF view could not be created for " + getUrl());
    viewRoot.setLocale(RequestContextUtils.getLocale(request));
View Full Code Here

Examples of javax.faces.application.ViewHandler.initView()

        }

        // init the View
        Application application = facesContext.getApplication();
        ViewHandler viewHandler = application.getViewHandler();
        viewHandler.initView(facesContext);

        UIViewRoot viewRoot = facesContext.getViewRoot();

        RestoreViewSupport restoreViewSupport = getRestoreViewSupport();
       
View Full Code Here

Examples of javax.faces.application.ViewHandler.initView()

        }

        // init the View
        Application application = facesContext.getApplication();
        ViewHandler viewHandler = application.getViewHandler();
        viewHandler.initView(facesContext);

        UIViewRoot viewRoot = facesContext.getViewRoot();

        RestoreViewSupport restoreViewSupport = getRestoreViewSupport();
       
View Full Code Here

Examples of javax.faces.application.ViewHandler.initView()

        requestMap.put(key, model.get(key));
      }
    }
   
    ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
    viewHandler.initView(facesContext);

    UIViewRoot viewRoot = viewHandler.createView(facesContext, getUrl());
    viewRoot.setLocale(RequestContextUtils.getLocale(request));
    viewRoot.setTransient(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.