diff --git a/xwork-core/src/main/java/com/opensymphony/xwork2/validator/annotations/IntRangeFieldValidator.java b/xwork-core/src/main/java/com/opensymphony/xwork2/validator/annotations/IntRangeFieldValidator.java index 439701716..d4f8971ee 100644 --- a/xwork-core/src/main/java/com/opensymphony/xwork2/validator/annotations/IntRangeFieldValidator.java +++ b/xwork-core/src/main/java/com/opensymphony/xwork2/validator/annotations/IntRangeFieldValidator.java @@ -77,13 +77,19 @@ import java.lang.annotation.Target; * min * no *   - * Integer property. The minimum the number must be. + * Integer property. The minimum the number must be. Can be an expression. Don't use ${min} as this can turn into infinitive loop! * * * max * no *   - * Integer property. The maximum number can be. + * Integer property. The maximum number can be. Can be an expression. Don't use ${max} as this can turn into infinitive loop! + * + * + * parse + * no + * false + * Enable parsing of min/max value. * * * @@ -97,6 +103,8 @@ import java.lang.annotation.Target; *
  * 
  * @IntRangeFieldValidator(message = "Default message", key = "i18n.key", shortCircuit = true, min = "0", max = "42")
+ *
+ * @IntRangeFieldValidator(message = "Default message", key = "i18n.key", shortCircuit = true, min = "${minValue}", max = "${maxValue}" parse="true")
  * 
  * 
*