-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Flex 3 with Java

When you are building forms for collecting user information, it's often necessary to validate the data entered by the user on the client to avoid unnecessary traffic to the server.
You saw how to add the required field indicators (*) in forms using the required
field property of the FormItem
control. However, this does not perform any validating; this just adds a red asterisk symbol before the field. To perform validation, you need to implement Flex framework validators.
The Flex framework provides common validators for validating common strings and number-based data, such as phone number, email address, and so on. The following list shows the available validators in Flex for common data entry needs:
Validators |
Description |
---|---|
|
For validating credit card information |
|
For currency |
|
For validating dates |
|
For validating email addresses |
|
Change the font size
Change margin width
Change background colour