Package org.ajax4jsf.builder.generator

Examples of org.ajax4jsf.builder.generator.GeneratorException


            templatesDir.getAbsolutePath());
      }
      Velocity.init(velocityProperties);
    } catch (Exception e1) {
      e1.printStackTrace();
      throw new GeneratorException(
          "Error initialization Velocity engine", e1);
    }

  }
View Full Code Here


   */
  public static Template getTemplate(String templateName) throws GeneratorException {
    try {
      return Velocity.getTemplate(templateName);
    catch (Exception e) {
      throw new GeneratorException("Error loading template " + templateName,e);
    }
  }
View Full Code Here

    Template template = _templates.get(name);
    if(null == template){
      try {
        template = engine.getTemplate(name);
      } catch (ResourceNotFoundException e) {
        throw new GeneratorException(e.getLocalizedMessage());
      } catch (ParseErrorException e) {
        throw new GeneratorException(e.getLocalizedMessage());
      } catch (Exception e) {
        throw new GeneratorException(e.getLocalizedMessage());
      }
      _templates.put(name, template);
    }
    return template;
  }
View Full Code Here

TOP

Related Classes of org.ajax4jsf.builder.generator.GeneratorException

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.