Examples of TemplateException


Examples of net.sf.jelly.apt.TemplateException

  private boolean value = true;

  protected Iterator<Accessor> getLoop(TemplateModel model) throws TemplateException {
    TypeDefinition typeDef = getTypeDefinition();
    if (typeDef == null) {
      throw new TemplateException("A type definition must be supplied.");
    }

    List<Accessor> accessors = new ArrayList<Accessor>();
    if (attributes) {
      aggregateAttributes(accessors, typeDef);
View Full Code Here

Examples of org.apache.click.service.TemplateException

        // Merge the data-model and the template
        try {
            template.process(model, writer);

        } catch (freemarker.template.TemplateException fmte) {
            throw new TemplateException(fmte);
        }
    }
View Full Code Here

Examples of org.apache.click.service.TemplateException

        // Merge the data-model and the template
        try {
            template.process(model, writer);

        } catch (freemarker.template.TemplateException fmte) {
            throw new TemplateException(fmte);
        }
    }
View Full Code Here

Examples of org.apache.click.service.TemplateException

    protected void handleException(HttpServletRequest request,
        HttpServletResponse response, boolean isPost, Throwable exception,
        Class<? extends Page> pageClass) {

        if (exception instanceof TemplateException) {
            TemplateException te = (TemplateException) exception;
            if (!te.isParseError()) {
                logger.error("handleException: ", exception);
            }

        } else {
            logger.error("handleException: ", exception);
View Full Code Here

Examples of org.apache.click.service.TemplateException

        this.servletContext = servletContext;

        if (error instanceof TemplateException
            && ((TemplateException) error).isParseError()) {

            TemplateException te = (TemplateException) error;

            if (te.getTemplateName().charAt(0) == '/') {
                sourceName = te.getTemplateName();
            } else {
                sourceName =  '/' + te.getTemplateName();
            }
            lineNumber = te.getLineNumber();
            columnNumber = te.getColumnNumber();

            InputStream is =
                servletContext.getResourceAsStream(sourceName);

            sourceReader = new LineNumberReader(new InputStreamReader(is));
View Full Code Here

Examples of org.apache.click.service.TemplateException

        this.servletContext = servletContext;

        if (error instanceof TemplateException
            && ((TemplateException) error).isParseError()) {

            TemplateException te = (TemplateException) error;

            if (te.getTemplateName().charAt(0) == '/') {
                sourceName = te.getTemplateName();
            } else {
                sourceName =  '/' + te.getTemplateName();
            }
            lineNumber = te.getLineNumber();
            columnNumber = te.getColumnNumber();

            InputStream is =
                servletContext.getResourceAsStream(sourceName);

            sourceReader = new LineNumberReader(new InputStreamReader(is));
View Full Code Here

Examples of org.apache.click.service.TemplateException

    protected void handleException(HttpServletRequest request,
        HttpServletResponse response, boolean isPost, Throwable exception,
        Class<? extends Page> pageClass) {

        if (exception instanceof TemplateException) {
            TemplateException te = (TemplateException) exception;
            if (!te.isParseError()) {
                logger.error("handleException: ", exception);
            }

        } else {
            logger.error("handleException: ", exception);
View Full Code Here

Examples of org.apache.click.service.TemplateException

        // Merge the data-model and the template
        try {
            template.process(model, writer);

        } catch (freemarker.template.TemplateException fmte) {
            throw new TemplateException(fmte);
        }
    }
View Full Code Here

Examples of org.apache.click.service.TemplateException

        // Merge the data-model and the template
        try {
            template.process(model, writer);

        } catch (freemarker.template.TemplateException fmte) {
            throw new TemplateException(fmte);
        }
    }
View Full Code Here

Examples of org.apache.click.service.TemplateException

        this.servletContext = servletContext;

        if (error instanceof TemplateException
            && ((TemplateException) error).isParseError()) {

            TemplateException te = (TemplateException) error;

            if (te.getTemplateName().charAt(0) == '/') {
                sourceName = te.getTemplateName();
            } else {
                sourceName =  '/' + te.getTemplateName();
            }
            lineNumber = te.getLineNumber();
            columnNumber = te.getColumnNumber();

            InputStream is =
                servletContext.getResourceAsStream(sourceName);

            sourceReader = new LineNumberReader(new InputStreamReader(is));
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.