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
This commit is contained in:
Lukasz Lenart
2012-10-11 19:40:52 +00:00
parent 939cd00168
commit a33e2dc2ef
@@ -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>
*