Package org.ajax4jsf.renderkit.compiler

Examples of org.ajax4jsf.renderkit.compiler.HtmlCompiler


    PreparedTemplate template;
    //    if(base.isCacheable()){
          template = (PreparedTemplate) base.getProperty(COMPILED_TEMPLATE_PROPERTY);
    //    }
        if(null == template){
          HtmlCompiler compiler = new HtmlCompiler();
          InputStream resourceAsStream = base.getResourceAsStream(context);
          template = compiler.compile(resourceAsStream, base.getKey());
          base.setProperty(COMPILED_TEMPLATE_PROPERTY, template);
          resourceAsStream.close();
        }
    return template;
  }
View Full Code Here


    PreparedTemplate template;
    //    if(base.isCacheable()){
          template = (PreparedTemplate) base.getProperty(COMPILED_TEMPLATE_PROPERTY);
    //    }
        if(null == template){
          HtmlCompiler compiler = new HtmlCompiler();
          InputStream resourceAsStream = base.getResourceAsStream(context);
          template = compiler.compile(resourceAsStream, base.getKey());
          base.setProperty(COMPILED_TEMPLATE_PROPERTY, template);
          resourceAsStream.close();
        }
    return template;
  }
View Full Code Here

    // if(base.isCacheable()){
    template = (PreparedTemplate) base
        .getProperty(COMPILED_TEMPLATE_PROPERTY);
    // }
    if (null == template) {
      HtmlCompiler compiler = new HtmlCompiler();
      InputStream resourceAsStream = base.getResourceAsStream(context);
      if (null != resourceAsStream) {
        template = compiler.compile(resourceAsStream, base.getKey());
        base.setProperty(COMPILED_TEMPLATE_PROPERTY, template);
        resourceAsStream.close();
      } else {
        throw new IOException("CSS Template "+base.getKey()+" not found");
      }
View Full Code Here

TOP

Related Classes of org.ajax4jsf.renderkit.compiler.HtmlCompiler

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.