You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by ni...@apache.org on 2006/11/18 03:28:07 UTC
svn commit: r476419 -
/struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/Resources.java
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 <msg> or <arg> elements, and localization
+ * will not work for alternative resource bundles. This method is
+ * deprecated for this reason, and you should use
+ * {@link #getActionMessage(Validator,HttpServletRequest,ValidatorAction,Field)}
+ * instead.
*
* @param request the servlet request
* @param va Validator action