Examples of contextPut()


Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

      logWarn("Context help page does not exist on path::" + pagePath, null);
      return null;
    }
    VelocityContainer container =  new VelocityContainer("contextHelpPageVC", pagePath, pageTranslator, this);         
    // add media directory url to context for resource delivery
    container.contextPut("chelpStaticDirUrl", chelpStaticDirUrl);
    return container;
  }

  /**
   * @see org.olat.core.gui.control.DefaultController#event(org.olat.core.gui.UserRequest,
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

    testCachePut2= LinkFactory.createButtonSmall("testCachePut2", cachetest, this);
    mainVc.put("cachetest", cachetest);
    updateCacheInfo();
   
    final VelocityContainer busMsgs = createVelocityContainer("busmsgs");
    busMsgs.contextPut("time", Formatter.formatDatetime(new Date()));
   
    mainVc.put("busmsgs", busMsgs);
    // let a thread repeatively dump all messages
    //final Formatter f = Formatter.getInstance(ureq.getLocale());
    final WindowBackOffice wbo = getWindowControl().getWindowBackOffice();
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

          }
          wbo.invokeLater(new Runnable() {
            public void run() {
              // simple reput the new lists into the velocity container.
              // the container is then dirty and automatically rerendered since polling has been turned on here.
              busMsgs.contextPut("time", Formatter.formatDatetime(new Date()));
              busMsgs.contextPut("recmsgs", clusBus.getListOfReceivedMsgs());
              busMsgs.contextPut("sentmsgs", clusBus.getListOfSentMsgs());
              // also let node infos refresh
              updateNodeInfos();
              // also let perf infos refresh
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

          wbo.invokeLater(new Runnable() {
            public void run() {
              // simple reput the new lists into the velocity container.
              // the container is then dirty and automatically rerendered since polling has been turned on here.
              busMsgs.contextPut("time", Formatter.formatDatetime(new Date()));
              busMsgs.contextPut("recmsgs", clusBus.getListOfReceivedMsgs());
              busMsgs.contextPut("sentmsgs", clusBus.getListOfSentMsgs());
              // also let node infos refresh
              updateNodeInfos();
              // also let perf infos refresh
              updatePerfInfos();
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

            public void run() {
              // simple reput the new lists into the velocity container.
              // the container is then dirty and automatically rerendered since polling has been turned on here.
              busMsgs.contextPut("time", Formatter.formatDatetime(new Date()));
              busMsgs.contextPut("recmsgs", clusBus.getListOfReceivedMsgs());
              busMsgs.contextPut("sentmsgs", clusBus.getListOfSentMsgs());
              // also let node infos refresh
              updateNodeInfos();
              // also let perf infos refresh
              updatePerfInfos();
              // update cache info
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

    String userName = hpc.getUserName();
    UserManager um = UserManager.getInstance();
    Identity identity = ManagerFactory.getManager().findIdentityByName(userName);
    User u = identity.getUser();
   
    myContent.contextPut("userName", identity.getName());
    myContent.contextPut("deleted", identity.getStatus().equals(Identity.STATUS_DELETED));
    myContent.contextPut("user", u);
    myContent.contextPut("locale", getLocale());
   
    // add configured property handlers and the homepage config
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

    UserManager um = UserManager.getInstance();
    Identity identity = ManagerFactory.getManager().findIdentityByName(userName);
    User u = identity.getUser();
   
    myContent.contextPut("userName", identity.getName());
    myContent.contextPut("deleted", identity.getStatus().equals(Identity.STATUS_DELETED));
    myContent.contextPut("user", u);
    myContent.contextPut("locale", getLocale());
   
    // add configured property handlers and the homepage config
    // do the looping in the velocity context
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

    Identity identity = ManagerFactory.getManager().findIdentityByName(userName);
    User u = identity.getUser();
   
    myContent.contextPut("userName", identity.getName());
    myContent.contextPut("deleted", identity.getStatus().equals(Identity.STATUS_DELETED));
    myContent.contextPut("user", u);
    myContent.contextPut("locale", getLocale());
   
    // add configured property handlers and the homepage config
    // do the looping in the velocity context
    List<UserPropertyHandler> userPropertyHandlers = um.getUserPropertyHandlersFor(usageIdentifyer, false);
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

    User u = identity.getUser();
   
    myContent.contextPut("userName", identity.getName());
    myContent.contextPut("deleted", identity.getStatus().equals(Identity.STATUS_DELETED));
    myContent.contextPut("user", u);
    myContent.contextPut("locale", getLocale());
   
    // add configured property handlers and the homepage config
    // do the looping in the velocity context
    List<UserPropertyHandler> userPropertyHandlers = um.getUserPropertyHandlersFor(usageIdentifyer, false);
    myContent.contextPut("userPropertyHandlers", userPropertyHandlers);
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

    myContent.contextPut("locale", getLocale());
   
    // add configured property handlers and the homepage config
    // do the looping in the velocity context
    List<UserPropertyHandler> userPropertyHandlers = um.getUserPropertyHandlersFor(usageIdentifyer, false);
    myContent.contextPut("userPropertyHandlers", userPropertyHandlers);
    myContent.contextPut("homepageConfig", hpc);   
   
    Controller dpc = new DisplayPortraitController(ureq, getWindowControl(), identity, true, false);
    listenTo(dpc); // auto dispose
    myContent.put("image", dpc.getInitialComponent());
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.