Package org.beangle.struts2.convention.route

Examples of org.beangle.struts2.convention.route.Action


public class BeangleTagLibrary implements TagLibrary {

  public Object getFreemarkerModels(ValueStack stack, HttpServletRequest req,
      HttpServletResponse res) {
    return new BeangleModels(stack, req, res);
  }
View Full Code Here


  public TextModel(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
    super(stack, req, res);
  }

  protected Component getBean() {
    return new Text(stack);
  }
View Full Code Here

  protected void buildCfg() {
    cfg = new freemarker.template.Configuration();
    cfg.setTemplateLoader(new StrutsClassTemplateLoader());
    cfg.setTemplateExceptionHandler(TemplateExceptionHandler.HTML_DEBUG_HANDLER);
    cfg.setObjectWrapper(new BeangleObjectWrapper(true));
    cfg.setDefaultEncoding("utf-8");
  }
View Full Code Here

    this.res = res;
  }

  public TextModel getText() {
    if (null == text) {
      text = new TextModel(stack, req, res);
    }
    return text;
  }
View Full Code Here

    }
    return false;
  }

  protected void mergeTemplate(Writer writer) throws Exception {
    TemplateEngine engine = getContainer().getInstance(TemplateEngine.class);
    engine.render(getTheme().getTemplatePath(getClass(), engine.getSuffix()), stack, writer, this);
  }
View Full Code Here

  final public boolean usesBody() {
    return true;
  }

  public final void setTheme(String newTheme) {
    this.theme = new Theme(newTheme);
    pushTheme(theme);
    useNewTheme = true;
  }
View Full Code Here

      return theme;
    }
  }

  public void setTheme(String theme) {
    this.theme = new Theme(theme);
  }
View Full Code Here

    pushTheme(theme);
    useNewTheme = true;
  }

  private void pushTheme(Theme theme) {
    ThemeStack themestack = (ThemeStack) stack.getContext().get(Theme.THEME_STACK);
    if (null == themestack) {
      themestack = new ThemeStack();
      stack.getContext().put(Theme.THEME_STACK, themestack);
    }
    themestack.push(theme);
  }
View Full Code Here

    }
    themestack.push(theme);
  }

  private void popTheme() {
    ThemeStack themestack = (ThemeStack) stack.getContext().get(Theme.THEME_STACK);
    themestack.pop();
    if (themestack.isEmpty()) stack.getContext().remove(Theme.THEME_STACK);
  }
View Full Code Here

    this.id = id;
  }

  protected Theme getTheme() {
    if (null == theme) {
      ThemeStack themestack = (ThemeStack) stack.getContext().get(Theme.THEME_STACK);
      if (null != themestack) {
        theme = themestack.peek();
      }
      if (null == theme) {
        theme = (Theme) stack.getContext().get(Theme.THEME);
      }
      return theme;
View Full Code Here

TOP

Related Classes of org.beangle.struts2.convention.route.Action

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.