Package org.olat.core.gui.components

Examples of org.olat.core.gui.components.Window.dispatchRequest()


      if (cc != null) {       
        Window currentWindow = cc.getWindow();
        // Check if this is a start URL or a framework URL
        if (ureq.isValidDispatchURI()) {
          // A standard framework request, dispatch by component
          currentWindow.dispatchRequest(ureq, false);
          return;
        } else {         
          // If path contains complete URL, dispose and start from scratch
          Windows.getWindows(ureq).deregisterWindow(currentWindow);
          cc.dispose();         
View Full Code Here


      Windows.getWindows(ureq.getUserSession()).setAttribute(CONTEXTHELPCHIEFCONTROLLER, cc);     
      Window currentWindow = cc.getWindow();
      currentWindow.setUriPrefix(WebappHelper.getServletContextPath() + PATH_CHELP);
      Windows.getWindows(ureq).registerWindow(currentWindow);
      // finally dispatch the initial request
      currentWindow.dispatchRequest(ureq, true);
     
    } catch (Throwable th) {
      try {
        ChiefController msgcc = MsgFactory.createMessageChiefController(ureq, th);
        // the controller's window must be failsafe also
View Full Code Here

        WindowControl wControl = cc.getWindowControl();
        WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(bc, wControl);
        NewControllerFactory.getInstance().launch(ureq, bwControl)
        // render the window
        Window w = cc.getWindow();
        w.dispatchRequest(ureq, true); // renderOnly
        return;
      }
     
      // 1. check for direct launch urls, see org.olat.core.dispatcher.jumpin.JumpinConfig
      if (!ureq.isValidDispatchURI()) {
View Full Code Here

                WindowControl wControl = cc.getWindowControl();
                WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(bc, wControl);
                NewControllerFactory.getInstance().launch(ureq, bwControl)
                // render the window
                Window w = cc.getWindow();
                w.dispatchRequest(ureq, true); // renderOnly
                return;
              } catch (Exception ex) {
                // sendNotFound         
              }
            }
View Full Code Here

            dts.activate(ureq, dt, jh.extractActiveViewId(ureq));
          }
        }
        // render the window
        Window w = cc.getWindow();
        w.dispatchRequest(ureq, true); // renderOnly
      } else { // valid uri for dispatching (has timestamp, componentid and
        // windowid)
        Windows ws = Windows.getWindows(ureq);
        Window window = ws.getWindow(ureq);
        if (window == null) {
View Full Code Here

          // -> a content packaging with wrong links e.g. /css/my.css
          // wastes all the windows
          DispatcherAction.sendNotFound(request.getRequestURI(), response);
          return;
        }
        window.dispatchRequest(ureq);
      }
    } catch (Throwable th) {
      // Do not log as Warn or Error here, log as ERROR in MsgFactory => ExceptionWindowController throws an OLATRuntimeException
      Tracing.logDebug("handleError in AuthenticatedDispatcher throwable=" + th, getClass());
      DispatcherAction.handleError();
View Full Code Here

        ChiefController occ = createAuthHome(ureq);
        Window currentWindow = occ.getWindow();
        currentWindow.setUriPrefix(WebappHelper.getServletContextPath() + "/temp/");
        Windows.getWindows(ureq).registerWindow(currentWindow);
        // render only
        currentWindow.dispatchRequest(ureq, true);
       
      } else {
        // auth: get window
        Windows ws = Windows.getWindows(ureq);
        Window window = ws.getWindow(ureq);
View Full Code Here

       
      } else {
        // auth: get window
        Windows ws = Windows.getWindows(ureq);
        Window window = ws.getWindow(ureq);
        window.dispatchRequest(ureq);       
      }


    } catch (Throwable th) {
      try {
View Full Code Here

     
    // brasato:: ChiefController cc = Windows.getWindows(usess).getMainOlatChiefController();
    ChiefController cc = (ChiefController) Windows.getWindows(usess).getAttribute("AUTHCHIEFCONTROLLER");
    if (cc == null) throw new AssertException("logged in, but no window/Chiefcontroller 'olatmain' found!");
    Window w = cc.getWindow();
    w.dispatchRequest(ureq, true); // renderOnly
  }

}
View Full Code Here

          //}

          window = occ.getWindow();
          window.setUriPrefix(uriPrefix);
          ws.registerWindow(window);
          window.dispatchRequest(ureq, true);
       
        } else {
          window.dispatchRequest(ureq);
        }
      }
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.