Validator Catalog Home Docs Home

BasicValidator reference

This is the number validator implementation.

Here are the Default Validator Messages

configuration entries reference
Key Description
maximumIntegerDigits Maximum number of digits in integer part of the number
maximumFractionDigits Maximum number of digits in fraction part of the number
groupingUsed Set to 'true' or '1' if the number has grouping (i.e. 1,000)
currency Set to 'true' or '1' if the number is currency
minValue If set checks for minimum value
maxValue If set checks for maximum value


top

Entry maximumIntegerDigits
Default (no default, optional)
Example 10
error message key error.number.maxinteger
error message params 0 - field label
1 - value
2 - info or maximumIntegerDigits
Since 0.7.4.7


top

Entry maximumFractionDigits
Default (no default, optional)
Example 2
error message key error.number.maxfraction
error message params 0 - field label
1 - value
2 - info or maximumFractionDigits
Since 0.7.4.7


top

Entry groupingUsed
Default false
Example true
Since 0.7.4.7


top

Entry currency
Default false
Example true
Since 0.7.4.7


top

Entry minValue
Default (no default, optional)
Example 2
error message key error.number.min
error message params 0 - field label
1 - value
2 - minValue
Since 0.7.4.7


top

Entry maxValue
Default (no default, optional)
Example 10
error message key error.number.max
error message params 0 - field label
1 - value
2 - maxValue
Since 0.7.4.7


top