Package com.jfinal.render

Examples of com.jfinal.render.Render


      }
      else {
        new ActionInvocation(action, controller).invoke();
      }
     
      Render render = controller.getRender();
      if (render instanceof ActionRender) {
        String actionUrl = ((ActionRender)render).getActionUrl();
        if (target.equals(actionUrl))
          throw new RuntimeException("The forward action url is the same as before.");
        else
          handle(actionUrl, request, response, isHandled);
        return ;
      }
     
      if (render == null)
        render = renderFactory.getDefaultRender(action.getViewPath() + action.getMethodName());
      render.setContext(request, response, action.getViewPath()).render();
    }
    catch (RenderException e) {
      if (log.isErrorEnabled()) {
        String qs = request.getQueryString();
        log.error(qs == null ? target : target + "?" + qs, e);
View Full Code Here


      }
      else {
        new ActionInvocation(action, controller).invoke();
      }
     
      Render render = controller.getRender();
      if (render instanceof ActionRender) {
        String actionUrl = ((ActionRender)render).getActionUrl();
        if (target.equals(actionUrl))
          throw new RuntimeException("The forward action url is the same as before.");
        else
          handle(actionUrl, request, response, isHandled);
        return ;
      }
     
      if (render == null)
        render = renderFactory.getDefaultRender(action.getViewPath() + action.getMethodName());
      render.setContext(request, response, action.getViewPath()).render();
    }
    catch (RenderException e) {
      if (log.isErrorEnabled()) {
        String qs = request.getQueryString();
        log.error(qs == null ? target : target + "?" + qs, e);
View Full Code Here

        controller.setAttr(localePara, locale);
        ai.invoke();
        if (Boolean.TRUE.equals(ai.getController().getAttr(skipFlagPara))) {
            return;
        }
        Render render = controller.getRender();
        if (render == null) {
            render = RenderFactory.me().getDefaultRender(ai.getMethodName());
        }
        String view = render.getView();

        String prefix = getPrefix(country, language);

        if (view.startsWith("/")) {
            view = "/" + prefix + "/" + view.substring(1, view.length());
View Full Code Here

      }
      else {
        new ActionInvocation(action, controller).invoke();
      }
     
      Render render = controller.getRender();
      if (render instanceof ActionRender) {
        String actionUrl = ((ActionRender)render).getActionUrl();
        if (target.equals(actionUrl))
          throw new RuntimeException("The forward action url is the same as before.");
        else
          handle(actionUrl, request, response, isHandled);
        return ;
      }
     
      if (render == null)
        render = renderFactory.getDefaultRender(action.getViewPath() + action.getMethodName());
      render.setContext(request, response, action.getViewPath()).render();
    }
    catch (RenderException e) {
      if (log.isErrorEnabled()) {
        String qs = request.getQueryString();
        log.error(qs == null ? target : target + "?" + qs, e);
View Full Code Here

      }
      else {
        new ActionInvocation(action, controller).invoke();
      }
     
      Render render = controller.getRender();
      if (render instanceof ActionRender) {
        String actionUrl = ((ActionRender)render).getActionUrl();
        if (target.equals(actionUrl))
          throw new RuntimeException("The forward action url is the same as before.");
        else
          handle(actionUrl, request, response, isHandled);
        return ;
      }
     
      if (render == null)
        render = renderFactory.getDefaultRender(action.getViewPath() + action.getMethodName());
      render.setContext(request, response, action.getViewPath()).render();
    }
    catch (RenderException e) {
      if (log.isErrorEnabled()) {
        String qs = request.getQueryString();
        log.error(qs == null ? target : target + "?" + qs, e);
View Full Code Here

TOP

Related Classes of com.jfinal.render.Render

Copyright © 2018 www.massapicom. 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.