myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hno...@apache.org
Subject [myfaces-tobago] branch master updated: improve demo * cleanup exception page
Date Fri, 17 Nov 2017 09:05:48 GMT
This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/master by this push:
     new 0914b23  improve demo * cleanup exception page
0914b23 is described below

commit 0914b233fcbde926cfb401e23111fbf462d9cacc
Author: Henning Noeth <hnoeth@apache.org>
AuthorDate: Fri Nov 17 10:03:52 2017 +0100

    improve demo
    * cleanup exception page
---
 .../src/main/webapp/error/exception.xhtml          | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/tobago-example/tobago-example-demo/src/main/webapp/error/exception.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/error/exception.xhtml
index b2d077f..fe50694 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/error/exception.xhtml
+++ b/tobago-example/tobago-example-demo/src/main/webapp/error/exception.xhtml
@@ -24,28 +24,6 @@
 
     <tc:messages/>
     <tc:section id="errorSection" label="An error has occurred!">
-      <!-- TODO
-      <tc:out value="#{exceptionContext.exception}" escape="false"/>
-
-
-      <%!
-        public static String exceptionToString(Throwable exception) {
-          if (exception == null) {
-            return "No Exception available!";
-          }
-          StringBuilder builder = new StringBuilder();
-          builder.append("<pre>");
-          StringWriter stringWriter = new StringWriter();
-          exception.printStackTrace(new PrintWriter(stringWriter));
-          builder.append(stringWriter.toString());
-          builder.append("</pre>");
-          return builder.toString();
-        }
-      %>
-      <%
-        request.setAttribute("exceptionText", exceptionToString(exception));
-      %>
--->
       <pre>
         <tc:out value="#{exceptionController.stackTrace}"/>
       </pre>

-- 
To stop receiving notification emails like this one, please contact
['"commits@myfaces.apache.org" <commits@myfaces.apache.org>'].

Mime
View raw message