Package org.olat.core.gui.render.velocity

Examples of org.olat.core.gui.render.velocity.VelocityHelper


    // the component id of the urlbuilder  will be overwritten by the recursive render call for
    // subcomponents (see Renderer)
    Renderer fr = Renderer.getInstance(vc, translator, ubu, renderResult, renderer.getGlobalSettings());
    VelocityRenderDecorator vrdec = new VelocityRenderDecorator(fr, vc);     
    ctx.put("r", vrdec);
    VelocityHelper vh = VelocityHelper.getInstance();
    String mm = vh.mergeContent(pagePath, ctx, theme);
   
    // experimental!!!
    // surround with red border if recording mark indicates so.
    if (vc.markingCommandString != null) {
      target.append("<table style=\"border:3px solid red; background-color:#E0E0E0; padding:4px; margin:0px;\"><tr><td>").append(mm).append("</td></tr></table>");
View Full Code Here


    String lang = I18nManager.getInstance().getLanguageTranslated(pageTranslator.getLocale().toString(), I18nModule.isOverlayEnabled());
    contextHelpDocument.setDocumentType(TYPE)
    contextHelpDocument.setCssIcon("b_contexthelp_icon");
    contextHelpDocument.setTitle(pageTranslator.translate("chelp." + page.split("\\.")[0] + ".title") + " (" + lang + ")");
   
    VelocityHelper vh = VelocityHelper.getInstance();
    String mergedContent = vh.mergeContent(pagePath, ctx, null);
    // Remove any HTML stuff from page
    Matcher m = HTML_TAG_PATTERN.matcher(mergedContent);
    mergedContent = m.replaceAll(" ");
    // Remove all &nbsp
    m = HTML_SPACE_PATTERN.matcher(mergedContent);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.render.velocity.VelocityHelper

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.