[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...
Gavin King
gavin.king at jboss.com
Mon Feb 5 01:06:09 EST 2007
User: gavin
Date: 07/02/05 01:06:09
Modified: src/main/org/jboss/seam/core Exceptions.java
Log:
change to <message>
Revision Changes Path
1.29 +4 -3 jboss-seam/src/main/org/jboss/seam/core/Exceptions.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Exceptions.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/Exceptions.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- Exceptions.java 4 Feb 2007 17:03:33 -0000 1.28
+++ Exceptions.java 5 Feb 2007 06:06:09 -0000 1.29
@@ -125,8 +125,8 @@
if (redirect!=null)
{
final String viewId = redirect.attributeValue("view-id");
- Element facesMessage = redirect.element("faces-message");
- final String message = facesMessage==null ? null : facesMessage.getTextTrim();
+ Element messageElement = redirect.element("message");
+ final String message = messageElement==null ? null : messageElement.getTextTrim();
return new ConfigRedirectHandler(viewId, clazz, endConversation, message);
}
@@ -136,7 +136,8 @@
String errorCode = error.attributeValue("error-code");
final int code = Strings.isEmpty(errorCode) ?
500 : Integer.parseInt(errorCode);
- final String message = error.getTextTrim();
+ Element messageElement = redirect.element("message");
+ final String message = messageElement==null ? null : messageElement.getTextTrim();
return new ConfigErrorHandler(message, endConversation, clazz, code);
}
More information about the jboss-cvs-commits
mailing list