Package org.zkoss.zk.ui.sys

Examples of org.zkoss.zk.ui.sys.PageRenderPatch


          wapp, sess, desktop, httpreq,
          PageDefinitions.getLocator(wapp, path));
        ((SessionCtrl)sess).notifyClientRequest(true);

        final Page page;
        final PageRenderPatch patch = getRenderPatch();
        final Writer out = patch.beforeRender(ri);
        final UiFactory uf = wappc.getUiFactory();
        if (uf.isRichlet(ri, bRichlet)) {
          final Richlet richlet = uf.getRichlet(ri, path);
          if (richlet == null)
            return false; //not found

          page = WebManager.newPage(uf, ri, richlet, httpres, path);
          final Execution exec =
            new ExecutionImpl(svlctx, httpreq, httpres, desktop, page);
          fixContentType(response);
          wappc.getUiEngine().execNewPage(exec, richlet, page,
            out != null ? out: response.getWriter());
        } else if (path != null) {
          final PageDefinition pagedef = uf.getPageDefinition(ri, path);
          if (pagedef == null)
            return false; //not found

          page = WebManager.newPage(uf, ri, pagedef, httpres, path);
          final Execution exec =
            new ExecutionImpl(svlctx, httpreq, httpres, desktop, page);
          fixContentType(response);
          wappc.getUiEngine().execNewPage(exec, pagedef, page,
            out != null ? out: response.getWriter());
        } else
          return true; //nothing to do

        if (out != null)
          patch.patchRender(ri, page, out, response.getWriter());
      }
    } finally {
      if (dtrc != null) Utils.afterService(dtrc, desktop);
    }
    return true; //success
View Full Code Here


    synchronized (DHtmlLayoutPortlet.class) {
      if (_prpatch != null)
        return _prpatch;

      final PageRenderPatch patch;
      final String clsnm = Library.getProperty(
        org.zkoss.zk.ui.sys.Attributes.PORTLET_RENDER_PATCH_CLASS);
      if (clsnm == null) {
        patch = new PageRenderPatch() {
          public Writer beforeRender(RequestInfo reqInfo) {
            return null;
          }
          public void patchRender(RequestInfo reqInfo, Page page, Writer result, Writer out)
          throws IOException {
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.sys.PageRenderPatch

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.