4.7.5 The RangeValidator tag
Description
The « RangeValidator » tag is used to check if the entered value matches a given interval.
This validator’s various attributes are:
| Attribute | Required | Description |
| Min | Y | Minimum value |
| max | Y | Maximum value |
| valuetype | Y | Type of values to compare (integer, double, date, string, currency) |
Example
This validation checks if the « age » field value ranges from 0 and 150.
| Rendering |
|
| XHTML settings | <bluage:RangeValidator id="age_range_validation" forid="txt_age" errormessage="Age has to between 0 and 150" min="0" max="150" valuetype="integer" styleclass="error"/> |
| Screen activity diagram |
|
| Entities Diagram |
|
| Service activity diagram | N/A |
Tag attributes: reference
| Tag | RangeValidator |
| Description | Defines fields whose value must be in a given interval. |
| Diagram |
|



