From a33e2dc2ef2c08557cbbdd697fbc916b2489565a Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Thu, 11 Oct 2012 19:40:52 +0000 Subject: [PATCH] WW-3888 updates documentation regarding expression evaluation git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1397257 13f79535-47bb-0310-9956-ffa450edef68 --- .../annotations/IntRangeFieldValidator.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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")
  * 
  * 
*