[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/util ...
Christian Bauer
christian at hibernate.org
Wed Apr 4 06:38:14 EDT 2007
User: cbauer
Date: 07/04/04 06:38:14
Modified: examples/wiki/src/main/org/jboss/seam/wiki/util
WikiUtil.java
Log:
Switched to AJAX forms
Revision Changes Path
1.3 +10 -0 jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/util/WikiUtil.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: WikiUtil.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/util/WikiUtil.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- WikiUtil.java 2 Apr 2007 18:25:07 -0000 1.2
+++ WikiUtil.java 4 Apr 2007 10:38:14 -0000 1.3
@@ -105,6 +105,16 @@
}
+ public static Throwable unwrap(Throwable throwable) throws IllegalArgumentException {
+ if (throwable == null) {
+ throw new IllegalArgumentException("Cannot unwrap null throwable");
+ }
+ for (Throwable current = throwable; current != null; current = current.getCause()) {
+ throwable = current;
+ }
+ return throwable;
+ }
+
public static int getSessionTimeoutSeconds() {
return ((HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(true)).getMaxInactiveInterval();
}
More information about the jboss-cvs-commits
mailing list