Package org.zkoss.zk.ui.impl

Examples of org.zkoss.zk.ui.impl.RequestInfoImpl


    return ((WebAppCtrl)getDesktop().getWebApp()).getUiFactory()
      .getPageDefinitionDirectly(newRequestInfo(null), reader, ext);
  }
  private RequestInfo newRequestInfo(String uri) {
    final Desktop dt = getDesktop();
    return new RequestInfoImpl(
      dt, _request, PageDefinitions.getLocator(getDesktop().getWebApp(), uri));
  }
View Full Code Here


    final Desktop desktop =
      getWebManager().getDesktop(sess, request, response, path, true);
    if (desktop == null) //forward or redirect
      return;

    final RequestInfo ri = new RequestInfoImpl(
      wapp, sess, desktop, request, PageDefinitions.getLocator(wapp, path));

    final boolean compress = _webctx.shallCompress(request, "zul");
    final Page page = WebManager.newPage(
      wappc.getUiFactory(), ri, pagedef, response, path);
View Full Code Here

      if (desktop == null) {
        desktop = _webman.getDesktop(sess, request, response, path, true);
        if (desktop == null) //forward or redirect
          return true;

        final RequestInfo ri = new RequestInfoImpl(
          wapp, sess, desktop, request,
          PageDefinitions.getLocator(wapp, path));
        sess.setAttribute(Attributes.GAE_FIX, new Integer(0));
        ((SessionCtrl)sess).notifyClientRequest(true);
View Full Code Here

      final Desktop desktop =
        webman.getDesktop(sess, request, response, path, true);
      if (desktop == null) //forward or redirect
        return;

      final RequestInfo ri = new RequestInfoImpl(
        wapp, sess, desktop, request, null);
      ((SessionCtrl)sess).notifyClientRequest(true);
      final UiFactory uf = wappc.getUiFactory();
      final PageDefinition pagedef =
        uf.getPageDefinitionDirectly(ri, content, _ext);
View Full Code Here

    try {
      final Desktop desktop = webman.getDesktop(sess, request, response, path, true);
      if (desktop == null) //forward or redirect
        return;

      final RequestInfo ri = new RequestInfoImpl(
        wapp, sess, desktop, request,
        PageDefinitions.getLocator(wapp, path));
      sess.setAttribute(Attributes.GAE_FIX, new Integer(0));
      ((SessionCtrl)sess).notifyClientRequest(true);
View Full Code Here

      if (desktop == null) {
        desktop = webman.getDesktop(sess, httpreq, httpres, path, true);
        if (desktop == null) //forward or redirect
          return true;

        final RequestInfo ri = new RequestInfoImpl(
          wapp, sess, desktop, httpreq,
          PageDefinitions.getLocator(wapp, path));
        ((SessionCtrl)sess).notifyClientRequest(true);

        final Page page;
View Full Code Here

      (HttpServletResponse)response, null);
    ExecutionsCtrl.setCurrent(de);
    try {
      Desktop desktop =
        ((WebAppCtrl)_wapp).getUiFactory().newDesktop(
        new RequestInfoImpl(_wapp, sess, null, request, loc),
        _updateURI, path);
      return !de.isVoided() ? desktop: null;
    } finally {
      ExecutionsCtrl.setCurrent(exec);
    }
View Full Code Here

    final PageDefinition pgdef = new PageDefinition(langdef, getLocator());

    //3. resolve imports
    if (!imports.isEmpty()) {
      final RequestInfo ri =
        new RequestInfoImpl(_wapp, null, null, null, getLocator());
      final UiFactory uf = ((WebAppCtrl)_wapp).getUiFactory();
      for (Iterator it = imports.iterator(); it.hasNext();) {
        final String[] imprt = (String[])it.next();
        final String path = imprt[0], dirs = imprt[1];
        try {
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.impl.RequestInfoImpl

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.