4.7.7 The LengthValidator tag
Description
The« LengthValidator » validator is used to check the entered String length.
Example
This validation checks that the « Given name » field size is less than 20.
| Rendering |
|
XHTML settings | <bluage:LengthValidator id="givenName_length_validation" forid="txt_givenName" errormessage="The given name field length must be less than 20 characters" min="0" max="20" styleclass="error" /> |
| Screen activity diagram |
|
| Entities Diagram |
|
| Service activity diagram | N/A |
Tag attributes: reference
| Tag | LengthValidator |
| Description | To check the entered String length |
| Diagram |
|
Tag attributes description
| Attribute | Required | Description |
| id | Y | Unique tag ID in the page |
| forid | Y | ID of the item to be validated |
| errormessage | N | error message to display in case of validation error |
| styleclass | N | Error message to display style CSS class |
| min | Y | Minimum value |
| max | Y | Maximum value |



