|
A space-delimited list of validators could be specified for an element. They
could come in various forms that would ensure that entries conform to specific
types (numeric, long, date, etc), or regular expression. They could also
restrict the ranges of values, maximum or minimum length, of the enties. Others
provide comprehensive validation for special fields like zip or postal code,
email address, credit card number, etc.
The space -delimited list of validators entered here should be accompanied by
the relevant parameters.
The standard validators for dWebSpec are listed below:
- TypeValidator:,
- RequiredValidator:,
- Range:,startRange,endRange
- Regex:,exp
- MaxLength:,length
- MinLength:,length
- Equal:,target
The format is
Validatior:message,variable1,variable2,variable...
message could be in this forms.
Stop
"Stop entry" (quote needed for embedded space)
{msg.stop} (externalized string)
variables needed are shown to the right of the validators as
depicted above.
|