webwork/src/main/webwork/action ActionSupport.java,1.31,1.32
[email protected] Thu, 13 Jun 2002 10:10:41 -0700
| Newsgroups | gmane.comp.java.webwork.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/webwork/webwork/src/main/webwork/action
In directory usw-pr-cvs1:/tmp/cvs-serv20048
Modified Files:
ActionSupport.java
Log Message:
add setters for error messages and errors to support action chaining
Index: ActionSupport.java
===================================================================
RCS file: /cvsroot/webwork/webwork/src/main/webwork/action/ActionSupport.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- ActionSupport.java 6 Jun 2002 11:22:31 -0000 1.31
+++ ActionSupport.java 13 Jun 2002 17:10:38 -0000 1.32
@@ -147,6 +147,14 @@
}
/**
+ * Replace errors messages colleciton with this one. Useful for action chaining.
+ */
+ public void setErrorMessages(Collection errorMessages)
+ {
+ this.errorMessages = errorMessages;
+ }
+
+ /**
* Check whether there are any error messages
*
* @return true if any error messages have been registered
@@ -168,7 +176,6 @@
errorMessages.add(anErrorMessage);
}
-
/**
* This method is used to attach an error message to a particular form field.
*
@@ -194,6 +201,14 @@
return Collections.EMPTY_MAP;
else
return errorMap;
+ }
+
+ /**
+ * Replace errors map with this one. Useful for action chaining.
+ */
+ public void setErrors(Map errorMap)
+ {
+ this.errorMap = errorMap;
}
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink