Examples of createView()


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

    ViewHandler viewHandler = application.getViewHandler();

    // boolean viewCreated = false;
    UIViewRoot viewRoot = viewHandler.restoreView(facesContext, viewId);
    if (viewRoot == null) {
      viewRoot = viewHandler.createView(facesContext, viewId);
      viewRoot.setViewId(viewId);
      facesContext.renderResponse();
      // viewCreated = true;
    }
View Full Code Here

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

    {
        ApplicationFactory appFactory =
            (ApplicationFactory)FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
        Application application = appFactory.getApplication();
        ViewHandler viewHandler = application.getViewHandler();
        UIViewRoot viewRoot = viewHandler.createView(facesContext, view);
        viewRoot.setViewId(view);
        facesContext.setViewRoot(viewRoot);
    }

    protected String selectDefaultView(RenderRequest request, RenderResponse response) throws PortletException
View Full Code Here

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

        if(outcome == null || outcome.length()==0)
            return;

        ViewHandler viewHandler=context.getApplication().getViewHandler();
    UIViewRoot viewRoot=viewHandler.createView(context,outcome);
    context.setViewRoot(viewRoot);
    context.renderResponse();
  }
}
View Full Code Here

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

    LOG.info("Original outcome='"+  original + "', adjusted outcome = '"+ outcome +"'");

    if (StringUtils.startsWith(outcome, "/content/")) {
      ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
      UIViewRoot viewRoot = viewHandler.createView(facesContext, outcome);
      facesContext.setViewRoot(viewRoot);
      facesContext.renderResponse();
    } else {
      navigationHandler.handleNavigation(facesContext, fromAction, outcome);
    }
View Full Code Here

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

        ApplicationFactory appFactory =
            (ApplicationFactory)FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
        Application application = appFactory.getApplication();
        ViewHandler viewHandler = application.getViewHandler();
        FacesContext facesContext = facesContext(request, response);
        UIViewRoot view = viewHandler.createView(facesContext, selectDefaultView(request, response));
        facesContext.setViewRoot(view);
        lifecycle.render(facesContext);
    }
   
    private String selectDefaultView(RenderRequest request, RenderResponse response) throws PortletException
View Full Code Here

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

            //   - there is no view metadata or metadata.createMetadataView() returned null
            if (viewRoot == null)
            {
                // call ViewHandler.createView(), passing the FacesContext instance for the current request and
                // the view identifier
                viewRoot = viewHandler.createView(facesContext, viewId);
            }
           
            // Subscribe the newly created UIViewRoot instance to the AfterAddToParent event, passing the
            // UIViewRoot instance itself as the listener.
            // -= Leonardo Uribe =- This line it is not necessary because it was
View Full Code Here

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

                //   - we don't have a ViewDeclarationLanguage (e.g. when using facelets-1.x)
                //   - there is no view metadata or metadata.createMetadataView() returned null
                //   - viewHandler.deriveViewId() returned null
                if (viewRoot == null)
                {
                    viewRoot = viewHandler.createView(facesContext, newViewId);
                }
               
                facesContext.setViewRoot(viewRoot);
                facesContext.renderResponse();
            }
View Full Code Here

Examples of javax.faces.view.ViewDeclarationLanguage.createView()

        ResponseStateManager rsm = RenderKitUtils.getResponseStateManager(context, renderKitId);
               
        if (rsm.isStateless(context, viewId))  {
            try {
                ViewDeclarationLanguage vdl = vdlFactory.getViewDeclarationLanguage(viewId);
                viewRoot = vdl.createView(context, viewId);
                context.setViewRoot(viewRoot);
                vdl.buildView(context, viewRoot);
                return viewRoot;
            } catch (IOException ioe) {
                throw new FacesException(ioe);
View Full Code Here

Examples of name.shamansir.mvp4glayoutdemo.client.page.company.view.widget.CompanyPortlet.createView()

        panel.clear();
        for (Company company: companies) {
            CompanyPortlet portlet = new CompanyPortlet();
            portlet.load(company,
                    url.from(P.COMPANY_SHOW, String.valueOf(company.getId())));
            portlet.createView();
            panel.add(portlet.getMainView());
        }
    }

}
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.startupprogress.StartupProgress.createView()

  protected void doGet(HttpServletRequest req, HttpServletResponse resp)
      throws IOException {
    resp.setContentType("application/json; charset=UTF-8");
    StartupProgress prog = NameNodeHttpServer.getStartupProgressFromContext(
      getServletContext());
    StartupProgressView view = prog.createView();
    JsonGenerator json = new JsonFactory().createJsonGenerator(resp.getWriter());
    try {
      json.writeStartObject();
      json.writeNumberField(ELAPSED_TIME, view.getElapsedTime());
      json.writeNumberField(PERCENT_COMPLETE, view.getPercentComplete());
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.