Package javax.faces.application

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


        fcFactory.getFacesContext(getServletContext(), request, response,
            lifecycle);
    Application application = facesContext.getApplication();
    ViewHandler viewHandler = application.getViewHandler();
    String viewId = getFromViewId();
    UIViewRoot view = viewHandler.createView(facesContext, viewId);
    facesContext.setViewRoot(view);

//    ExternalContext externalContext = facesContext.getExternalContext();
//    externalContext.getRequestMap().put("com.sun.faces.INVOCATION_PATH", "/faces");
View Full Code Here


        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

      Application application = facesContext.getApplication();
      if (facesContext.getViewRoot() == null) {
        ViewHandler viewHandler = application.getViewHandler();
        String viewId = getFromViewId();
        UIViewRoot view = viewHandler.createView(facesContext, viewId);
        facesContext.setViewRoot(view);
      }

      NavigationHandler navigationHandler = application.getNavigationHandler();
      navigationHandler.handleNavigation(facesContext, null, outcome);
View Full Code Here

    ViewHandler viewHandler = application.getViewHandler();

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

                String newViewId = navigationCase.getToViewId();
                UIViewRoot viewRoot = null;
                if (isPartialStateSavingOn(facesContext)) {
                    viewRoot = viewHandler.restoreView(facesContext,newViewId);
                } else {
                    viewRoot = viewHandler.createView(facesContext, newViewId);
                }
                facesContext.setViewRoot(viewRoot);
                facesContext.renderResponse();
            }
        }
View Full Code Here

        Application application = facescontext.getApplication();
        ViewHandler applicationViewHandler = application.getViewHandler();

        // create Component Tree
        ExternalContext externalContext = facescontext.getExternalContext();
        uiViewRoot = applicationViewHandler.createView(facescontext, viewId);
        uiViewRoot.setViewId(viewId);
        UIViewRootWrapper currentWrapper = new UIViewRootWrapper(uiViewRoot);

        facescontext.setViewRoot(currentWrapper);
View Full Code Here

    {
        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

            }
        }
        else
        {
            ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
            UIViewRoot viewRoot = viewHandler.createView(facesContext, targetViewId);
            facesContext.setViewRoot(viewRoot);
            facesContext.renderResponse();
        }
    }
}
View Full Code Here

 
    public void atualizarTela(){
        FacesContext context = FacesContext.getCurrentInstance()
        Application application = context.getApplication()
        ViewHandler viewHandler = application.getViewHandler()
        UIViewRoot viewRoot = viewHandler.createView(context, context.getViewRoot().getViewId())
        context.setViewRoot(viewRoot)
        context.renderResponse();  
    }
   
}
View Full Code Here

        ApplicationFactory appFactory =
            (ApplicationFactory)FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
        Application application = appFactory.getApplication();
        ViewHandler viewHandler = application.getViewHandler();
        FacesContext facesContext = facesContext(request, response);
        UIViewRoot viewRoot = viewHandler.createView(facesContext, view);
        viewRoot.setViewId(view);
        facesContext.setViewRoot(viewRoot);
        lifecycle.render(facesContext);
    }
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.