Lesson 14. Using Formatters and Validators


What You Will Learn

In this lesson, you will:

  • Create a new validator object on the client machine

  • Use the validator to check and see if the data is in a valid format

  • Create a new formatter object on the client machine

  • Use the formatter to format data

Approximate Time

This lesson takes approximately 1 hour and 30 minutes to complete.

Lesson Files

Media Files:

None

Starting Files:

Lesson14/start/EComm.mxml

Lesson14/start/views/dataEntry/AddProduct.mxml

Lesson14/start/views/ecomm/BillingInfo.mxml

Lesson14/start/views/ecomm/CCInfo.mxml

Lesson14/start/views/ecomm/GroceryDetail.mxml

Lesson14/start/views/ecomm/OrderConf.mxml

Completed Files:

Lesson14/complete/EComm.mxml

Lesson14/complete/utils/AddressValidator.as

Lesson14/complete/views/dataEntry/AddProduct.mxml

Lesson14/complete/views/ecomm/BillingInfo.mxml

Lesson14/complete/views/ecomm/CCInfo.mxml

Lesson14/complete/views/ecomm/GroceryDetail.mxml

Lesson14/complete/views/ecomm/OrderConf.mxml

Flex provides many types of built-in Validators and Formatters that enable you to validate many types of user-defined supplied data such as dates, numbers, and currencies. Using the built-in data Validators on the client side, you can make your application perform better by reducing calls to the server. You can also save development time by using the built-in Formatters to automate the often repetitive process of formatting data.

Validating Customer Information




Adobe Flex 2.Training from the Source
Adobe Flex 2: Training from the Source
ISBN: 032142316X
EAN: 2147483647
Year: 2006
Pages: 225

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net