Validator Components

Validator components are used to validate data in input fields on the form. Each validator compononent can validate one control, and there are two controls that will show the validation results to the user, either as a label with an error message, or a small graphic symbol.

TtdValidationLabel

Shows the validation results of its attached validator componnets. If all the validator components validate, then the label will be blank, otherwise an error message associated with the first non-validating component will be shown.

TtdValidationImage

Shows the validation results of its attached validator components. If all the validator components validate OK, then the image will not be shown. If one or more components is invalid, the image will be shown and its hint will be the error message associated with the first invalid component.

TtdRequiredValidator

A validator component that will validate if the text of the control that it validates is not blank.

TtdRegularExpressionValidator

A validator component that will try to match the regular expression against the text of the attached control and validate OK if a match is found.

TtdIntegerValidator

A validator component that will validate if the text of the attached control is an integer.

TtdRangedIntegerValidator

A validator component that will validate if the text of the attached control is an integer within the legal range.

TtdFloatValidator

A validator component that will validate if the text of the attached control is a floating point value.

TtdAnyValidator

A validator component that allows you to link other validator components. You specify when it validates: either when any of the linked validators are valid, or only when all of them are.

TtdEMailAddressValidator

Matches the text of the attached control against a regular expression pattern for email address and will validate if it matches.

TtdHTTPAddressValidator

Matches the text of the attached control against a regular expression pattern for an http address and will validate if it matches.

TtdFTPAddressValidator

Matches the text of the attached control against a regular expression pattern for an ftp address and will validate if it matches.

TtdUserNameValidator

A validator component for validating usernames. You can have it check for legal characters, length, etc....

TtdPasswordValidator

Similar to TtdUsernameValidator, but with different default error messages.

TtdLengthValidator

A validator component that checks the length of the text in the attached control and validates only if it is within a given range.

TtdEventValidator

A validator component that calls an event handler to check if it validates or not

Copyright ©2008 TwoDesk Software Company. All Rights Reserved.