Examples of renderView()


Examples of com.quickwebframework.viewrender.ViewRenderService.renderView()

    // 得到视图名称:例 qwf.test.core:/jsp/test.jsp
    String viewName = pluginName
        + viewRenderService.getPluginNameAndPathSplitString()
        + pathName;
    viewRenderService.renderView(request, response, viewName, null);
  }
}
View Full Code Here

Examples of com.quickwebframework.viewrender.ViewRenderService.renderView()

              + viewRenderService
                  .getPluginNameAndPathSplitString()
              + viewName;
        }
        // 渲染视图
        viewRenderService.renderView(request, response, viewName,
            mav.getModel());
      } else {
        response.sendError(500, String.format("[%s]未找到视图渲染器服务!", this
            .getClass().getName()));
      }
View Full Code Here

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

                newViewId = facesContext.getViewRoot().getViewId();
            }
            while ((newViewId == null && viewId != null)
                    || (newViewId != null && !newViewId.equals(viewId)));
           
            viewHandler.renderView(facesContext, root);
           
            // log all unhandled FacesMessages, don't swallow them
            if (!facesContext.getMessageList().isEmpty())
            {
                StringBuilder builder = new StringBuilder();
View Full Code Here

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

        }
        Application application = facesContext.getApplication();
        ViewHandler viewHandler = application.getViewHandler();
        try
        {
            viewHandler.renderView(facesContext, facesContext.getViewRoot());
        }
        catch (IOException e)
        {
            throw new FacesException(e.getMessage(), e);
        }
View Full Code Here

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

                    log.log(level, "Cicle over buildView-PreRenderViewEvent on RENDER_RESPONSE phase "
                                   + "reaches maximal limit, please check listeners for infinite recursion.");
                }
            }

            viewHandler.renderView(facesContext, root);
           
            // log all unhandled FacesMessages, don't swallow them
            if (!facesContext.getMessageList().isEmpty())
            {
                StringBuilder builder = new StringBuilder();
View Full Code Here

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

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

            try
            {
                viewHandler.renderView(facesContext, facesContext.getViewRoot());
            }
            catch (IOException e)
            {
                throw new FacesException(e.getMessage(), e);
            }
View Full Code Here

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

    ViewHandler viewHandler = application.getViewHandler();

    try {
      final UIViewRoot viewRoot = facesContext.getViewRoot();
      if (viewRoot.getViewId() != null) {
        viewHandler.renderView(facesContext, viewRoot);
      } else {
        throw new FacesException("Can't render, because the viewId is <null>.");
      }
    } catch (IOException e) {
      throw new FacesException(e.getMessage(), e);
View Full Code Here

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

    ViewHandler viewHandler = application.getViewHandler();

    try {
      final UIViewRoot viewRoot = facesContext.getViewRoot();
      if (viewRoot.getViewId() != null) {
        viewHandler.renderView(facesContext, viewRoot);
      } else {
        Object respObj = facesContext.getExternalContext().getResponse();
        if (respObj instanceof HttpServletResponse) {
            HttpServletResponse respHttp = (HttpServletResponse) respObj;
            respHttp.sendError(HttpServletResponse.SC_NOT_FOUND);
View Full Code Here

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

                return;
            }
            Application application = facesContext.getApplication();
            ViewHandler viewHandler = application.getViewHandler();
            try {
                viewHandler
                        .renderView(facesContext, facesContext.getViewRoot());
            } catch (IOException e) {
                throw new FacesException(e.getMessage(), e);
            }
        } finally {
View Full Code Here

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

  public boolean execute(FacesContext facesContext) {
    Application application = facesContext.getApplication();
    ViewHandler viewHandler = application.getViewHandler();

    try {
      viewHandler.renderView(facesContext, facesContext.getViewRoot());
    } catch (IOException e) {
      throw new FacesException(e.getMessage(), e);
    }
    return false;
  }
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.