Author: niallp
Date: Fri Nov 17 18:28:07 2006
New Revision: 476419

URL: http://svn.apache.org/viewvc?view=rev&rev=476419
Log:
STR-2971 Add warning to the Resources's deprecated getActionMessage() javadoc 
about the bundle attribute being ignored - suggested by Christopher Schultz

Modified:
    
struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/Resources.java

Modified: 
struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/Resources.java
URL: 
http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/Resources.java?view=diff&rev=476419&r1=476418&r2=476419
==============================================================================
--- 
struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/Resources.java
 (original)
+++ 
struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/Resources.java
 Fri Nov 17 18:28:07 2006
@@ -325,6 +325,13 @@
      * Gets the <code>ActionMessage</code> based on the
      * <code>ValidatorAction</code> message and the <code>Field</code>'s arg
      * objects.
+     * <p>
+     * <strong>Note:</strong> this method does not respect bundle information
+     * stored with the field's &lt;msg&gt; or &lt;arg&gt; elements, and 
localization
+     * will not work for alternative resource bundles. This method is
+     * deprecated for this reason, and you should use
+     * [EMAIL PROTECTED] 
#getActionMessage(Validator,HttpServletRequest,ValidatorAction,Field)}
+     * instead. 
      *
      * @param request the servlet request
      * @param va      Validator action


Reply via email to