Examples of StringModel


Examples of freemarker.ext.beans.StringModel

           
            @Override
            public TemplateModel get(String key) throws TemplateModelException {
                String value = (String) env.get(key);
                if(value != null) {
                    return new StringModel(value, bw);
                } else {
                    return null;
                }
            }
        });
View Full Code Here

Examples of freemarker.ext.beans.StringModel

  public Object exec(List paras) throws TemplateModelException {

    // TemplateModel model =
    // Environment.getCurrentEnvironment().getVariable("lineData");
    StringModel p1 = (StringModel) paras.get(0);
    StringModel p2 = (StringModel) paras.get(1);
    if (p2 != null) {
      BOInstance data = null;
      if (p1 != null) {
        data = (BOInstance) p1.getWrappedObject();
      }
      DOFormModel fm = (DOFormModel) p2.getWrappedObject();
      fm.setData(data);
     
      if (data != null) {
        if (!fm.isAccess(data)) {
          return "false";
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.