mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
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:
+10
-2
@@ -77,13 +77,19 @@ import java.lang.annotation.Target;
|
||||
* <td class='confluenceTd'> min </td>
|
||||
* <td class='confluenceTd'> no </td>
|
||||
* <td class='confluenceTd'> </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'> </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 -->
|
||||
* @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")
|
||||
* <!-- END SNIPPET: example -->
|
||||
* </pre>
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user