Package de.innovationgate.wgpublisher.webtml.utils

Examples of de.innovationgate.wgpublisher.webtml.utils.Warning


        else {
            this.appendResult("     No warnings detected\n");
        }

        java.util.Iterator warningList = warnings.iterator();
        Warning warning;
        while (warningList.hasNext()) {
            warning = (Warning) warningList.next();
            this.appendResult("      - " + WGUtils.strReplace(warning.getConsoleText(), "-->", "-- >", true) + "\n");
        }
       
        this.appendResult("\n     ##### WebTML Warnings ##### -->");
       
    }
View Full Code Here


    else {
      this.appendResult("No warnings detected</td></tr>");
    }

    java.util.Iterator warningList = warnings.iterator();
    Warning warning;
    while (warningList.hasNext()) {
      warning = (Warning) warningList.next();
      this.appendResult("<tr>");
      this.appendResult("<td align=\"center\"><img src=\"" + this.getWGPPath() + "/static/images/warning_" + (warning.isSevere() ? "severe" : "info") + ".jpg\"/></td>");
      this.appendResult("<td>" + warning.getResource() + "</td>");
      this.appendResult("<td>" + warning.getSourceLine()+ "</td>");
      this.appendResult("<td>" + warning.getTagType() + "</td>");
      this.appendResult("<td>" + warning.getTagId() + "</td>");
        this.appendResult("<td>" + warning.getDatabase() + "</td>");
      this.appendResult("<td>" + warning.getContextWGKey() + "</td>");
      this.appendResult("<td>" + WGUtils.encodeHTML(warning.getMessage()) + "</td>");
      this.appendResult("</tr>");
    }
   
    this.appendResult("</table>");
    }
View Full Code Here

        if (warnings == null) {
            warnings = new ArrayList();
            pageContext.setAttribute(Base.class.getName() + ":Warnings", warnings, PageContext.REQUEST_SCOPE);
        }
       
        Warning warning = new Warning(this, tmlContext, msg, severe);
        warnings.add(warning);

        if (core.getWgaConfiguration().isWarningsOutputOnConsole()) {
            core.getLog().warn(warning.getConsoleText());
        }

        if (severe == true) {
             cancelTag = true;
        }
View Full Code Here

TOP

Related Classes of de.innovationgate.wgpublisher.webtml.utils.Warning

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.