struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject svn commit: r1397257 - /struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/validator/annotations/IntRangeFieldValidator.java
Date Thu, 11 Oct 2012 19:40:53 GMT
Author: lukaszlenart
Date: Thu Oct 11 19:40:52 2012
New Revision: 1397257

URL: http://svn.apache.org/viewvc?rev=1397257&view=rev
Log:
WW-3888 updates documentation regarding expression evaluation

Modified:
    struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/validator/annotations/IntRangeFieldValidator.java

Modified: struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/validator/annotations/IntRangeFieldValidator.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/validator/annotations/IntRangeFieldValidator.java?rev=1397257&r1=1397256&r2=1397257&view=diff
==============================================================================
--- struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/validator/annotations/IntRangeFieldValidator.java
(original)
+++ struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/validator/annotations/IntRangeFieldValidator.java
Thu Oct 11 19:40:52 2012
@@ -77,13 +77,19 @@ import java.lang.annotation.Target;
  * <td class='confluenceTd'> min </td>
  * <td class='confluenceTd'> no </td>
  * <td class='confluenceTd'>&nbsp;</td>
- * <td class='confluenceTd'> Integer property.  The minimum the number must be. </td>
+ * <td class='confluenceTd'> Integer property. The minimum the number must be. Can
be an expression. Don't use ${min} as this can turn into infinitive loop!</td>
  * </tr>
  * <tr>
  * <td class='confluenceTd'> max </td>
  * <td class='confluenceTd'> no </td>
  * <td class='confluenceTd'>&nbsp;</td>
- * <td class='confluenceTd'> Integer property.  The maximum number can be. </td>
+ * <td class='confluenceTd'> Integer property. The maximum number can be. Can be an
expression. Don't use ${max} as this can turn into infinitive loop!</td>
+ * </tr>
+ * <tr>
+ * <td class='confluenceTd'>parse</td>
+ * <td class='confluenceTd'>no</td>
+ * <td class='confluenceTd'>false</td>
+ * <td class='confluenceTd'>Enable parsing of min/max value.</td>
  * </tr>
  * </table>
  *
@@ -97,6 +103,8 @@ import java.lang.annotation.Target;
  * <pre>
  * <!-- START SNIPPET: example -->
  * &#64;IntRangeFieldValidator(message = "Default message", key = "i18n.key", shortCircuit
= true, min = "0", max = "42")
+ *
+ * &#64;IntRangeFieldValidator(message = "Default message", key = "i18n.key", shortCircuit
= true, min = "${minValue}", max = "${maxValue}" parse="true")
  * <!-- END SNIPPET: example -->
  * </pre>
  *



Mime
View raw message