Package org.olat.core.gui.components.velocity

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


    setTranslator(uiFactory.getTranslator());
    VelocityContainer vcItem = uiFactory.createItemVelocityContainer(this);
    vcItem.contextPut("item", item);
    vcItem.contextPut("feed", feed);
    vcItem.contextPut("helper", helper);
    vcItem.contextPut("callback", callback);
    if (feed.isInternal()) {
      if (editButton != null) vcItem.put("editButton", editButton);
      if (deleteButton != null) vcItem.put("deleteButton", deleteButton);
    }
    backLink = LinkFactory.createLinkBack(vcItem, this);
View Full Code Here


      if (deleteButton != null) vcItem.put("deleteButton", deleteButton);
    }
    backLink = LinkFactory.createLinkBack(vcItem, this);
    // Add static path for resource delivery and js player for media
    String baseStaticPath = ClassPathStaticDispatcher.getInstance().getMapperBasePath(RSSFeed.class);
    vcItem.contextPut("baseStaticPath", baseStaticPath);
    // Add date component
    if(item.getDate() != null) {
      DateComponentFactory.createDateComponentWithYear("dateComp", item.getDate(), vcItem);
    }
    // Add rating and commenting controller - only when configured
View Full Code Here

//    }

    // browser not supported messages
    // true if browserwarning should be showed
    boolean bwo = !Settings.isBrowserOlatAjaxCertified(ureq);
    contentBorn.contextPut("browserWarningOn", bwo ? Boolean.TRUE : Boolean.FALSE);
   
    // prepare login
    if (provider == nullprovider = LoginModule.getDefaultProviderName();
    AuthenticationProvider authProvider = LoginModule.getAuthenticationProvider(provider);
    if (authProvider == null)
View Full Code Here

    contentBorn.put("loginComp", authController.getInitialComponent());
    Collection providers = LoginModule.getAuthenticationProviders();
    List providerSet = new ArrayList(providers.size());
    providerSet.addAll(providers);
    providerSet.remove(authProvider); // remove active authProvider from list of alternate authProviders
    contentBorn.contextPut("providerSet", providerSet);
    contentBorn.contextPut("locale", ureq.getLocale());

    // prepare info message
    InfoMessageManager mrg = (InfoMessageManager)CoreSpringFactory.getBean(InfoMessageManager.class);
    String infomsg = mrg.getInfoMessage();
View Full Code Here

    Collection providers = LoginModule.getAuthenticationProviders();
    List providerSet = new ArrayList(providers.size());
    providerSet.addAll(providers);
    providerSet.remove(authProvider); // remove active authProvider from list of alternate authProviders
    contentBorn.contextPut("providerSet", providerSet);
    contentBorn.contextPut("locale", ureq.getLocale());

    // prepare info message
    InfoMessageManager mrg = (InfoMessageManager)CoreSpringFactory.getBean(InfoMessageManager.class);
    String infomsg = mrg.getInfoMessage();
    if (infomsg != null && infomsg.length() > 0)
View Full Code Here

    // prepare info message
    InfoMessageManager mrg = (InfoMessageManager)CoreSpringFactory.getBean(InfoMessageManager.class);
    String infomsg = mrg.getInfoMessage();
    if (infomsg != null && infomsg.length() > 0)
      contentBorn.contextPut("infomsg", infomsg);
   
    String infomsgNode = mrg.getInfoMessageNodeOnly();
    if (infomsgNode != null && infomsgNode.length() > 0)
      contentBorn.contextPut("infomsgNode", infomsgNode);
   
View Full Code Here

    if (infomsg != null && infomsg.length() > 0)
      contentBorn.contextPut("infomsg", infomsg);
   
    String infomsgNode = mrg.getInfoMessageNodeOnly();
    if (infomsgNode != null && infomsgNode.length() > 0)
      contentBorn.contextPut("infomsgNode", infomsgNode);
   
    return contentBorn;
  }

 
View Full Code Here

          } else {
            getWindowControl().setError(translate("login.error", WebappHelper.getMailConfig("mailSupport")));
          }
        } else if (cmd.equals(ACTION_BROWSERCHECK)) {
          VelocityContainer browserCheck = createVelocityContainer("browsercheck");
          browserCheck.contextPut("isBrowserAjaxReady", Boolean.valueOf(Settings.isBrowserOlatAjaxCertified(ureq)));
          dmzPanel.pushContent(browserCheck);
        } else if (cmd.equals(ACTION_COOKIES)) {
          dmzPanel.pushContent(createVelocityContainer("cookies"));
        } else if (cmd.equals(ACTION_ABOUT)) {
          VelocityContainer aboutVC = createVelocityContainer("about");
View Full Code Here

          dmzPanel.pushContent(createVelocityContainer("cookies"));
        } else if (cmd.equals(ACTION_ABOUT)) {
          VelocityContainer aboutVC = createVelocityContainer("about");
          // Add version info and licenses
          Version v = (Version)CoreSpringFactory.getBean("org.olat.core.Version");
          aboutVC.contextPut("version", v.getFullVersion());
          aboutVC.contextPut("license", WebappHelper.getOlatLicense());
          // Add translator and languages info
          I18nManager i18nMgr = I18nManager.getInstance();
          Set<String> enabledKeysSet = I18nModule.getEnabledLanguageKeys();
          Map<String, String> langNames = new HashMap<String, String>();
View Full Code Here

        } else if (cmd.equals(ACTION_ABOUT)) {
          VelocityContainer aboutVC = createVelocityContainer("about");
          // Add version info and licenses
          Version v = (Version)CoreSpringFactory.getBean("org.olat.core.Version");
          aboutVC.contextPut("version", v.getFullVersion());
          aboutVC.contextPut("license", WebappHelper.getOlatLicense());
          // Add translator and languages info
          I18nManager i18nMgr = I18nManager.getInstance();
          Set<String> enabledKeysSet = I18nModule.getEnabledLanguageKeys();
          Map<String, String> langNames = new HashMap<String, String>();
          Map<String, String> langTranslators = new HashMap<String, String>();
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.