This validator is used to validate the lenght of strings.
3.0
Inheritance Path. java.lang.Object-> com.itmill.toolkit.data.validator.StringLengthValidator
Parameters
errorMessage
- The message to display in case the value does not validate.
Create a new StringLengthValidator with a given error message.
Parameters
errorMessage
- The message to display in case the value does not validate.
minLenght
- The minimum permissable lenght of the string.
maxLenght
- The maximum permissable lenght of the string.
allowNull
- Are null strings permissable?
Create a new StringLenghtValidator with a given error message, permissable lenghts and null-string allowance.
Parameters
maxLenght
- The lenght to set.
Set the maximum permissable length of the string.