Author: agilliland
Date: Wed May  2 09:51:48 2007
New Revision: 534543

URL: http://svn.apache.org/viewvc?view=rev&rev=534543
Log:
adding support for errors and messages that pass in a list of arguments.


Modified:
    roller/trunk/src/org/apache/roller/ui/core/util/struts2/UIAction.java

Modified: roller/trunk/src/org/apache/roller/ui/core/util/struts2/UIAction.java
URL: 
http://svn.apache.org/viewvc/roller/trunk/src/org/apache/roller/ui/core/util/struts2/UIAction.java?view=diff&rev=534543&r1=534542&r2=534543
==============================================================================
--- roller/trunk/src/org/apache/roller/ui/core/util/struts2/UIAction.java 
(original)
+++ roller/trunk/src/org/apache/roller/ui/core/util/struts2/UIAction.java Wed 
May  2 09:51:48 2007
@@ -136,6 +136,10 @@
         addActionError(getText(errorKey, errorKey, param));
     }
     
+    public void addError(String errorKey, List args) {
+        addActionError(getText(errorKey, args));
+    }
+    
     /**
      * This simply returns the result of hasActionErrors() but we need it
      * because without it you can't easily check if there were errors since
@@ -152,6 +156,10 @@
     
     public void addMessage(String msgKey, String param) {
         addActionMessage(getText(msgKey, msgKey, param));
+    }
+    
+    public void addMessage(String msgKey, List args) {
+        addActionMessage(getText(msgKey, args));
     }
     
     /**


Reply via email to