Examples of Taglib


Examples of railo.transformer.library.tag.TagLib

    // condition loop
    if(tag.containsAttribute("condition")){
      if(tag.isScriptBase())
        throw new EvaluatorException("tag loop-condition is not supported within cfscript, use instead a while statement.");
     
      TagLib tagLib=tagLibTag.getTagLib();
      ExprTransformer transformer;
      String text=ASMUtil.getAttributeString(tag, "condition");

      try {
        ConfigImpl config=(ConfigImpl) ThreadLocalPageContext.getConfig();
        transformer = tagLib.getExprTransfomer();
        Expression expr=transformer.transform(ASMUtil.getAncestorPage(tag),null,flibs,config.getCoreTagLib().getScriptTags(),new CFMLString(text,"UTF-8"),TransfomerSettings.toSetting(ThreadLocalPageContext.getConfig(),null));
        tag.addAttribute(new Attribute(false,"condition",CastBoolean.toExprBoolean(expr),"boolean"));
      }
      catch (Exception e) {
        throw new EvaluatorException(e.getMessage());
View Full Code Here

Examples of railo.transformer.library.tag.TagLib

  public static Struct call(PageContext pc , String nameSpace, String strTagName) throws PageException {
    TagLib[] tlds;
    tlds = ((ConfigImpl)pc.getConfig()).getTLDs();

   
    TagLib tld=null;
    TagLibTag tag=null;
    for(int i=0;i<tlds.length;i++) {
        tld=tlds[i];
      if(tld.getNameSpaceAndSeparator().equalsIgnoreCase(nameSpace)) {
          tag = tld.getTag(strTagName.toLowerCase());
          if(tag!=null)break;
      }
     
    }
    if(tag == null) throw new ExpressionException("tag ["+nameSpace+strTagName+"] is not a built in tag");
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.