O'Reilly logo

Flex 4 in Action: Revised Edition of Flex 3 in Action by Tariq Ahmed and Dan Orlando, with John C. Bland II and Joel Hooks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Validating user input

This chapter covers

  • Validation versus enforcement
  • Pass-through validation
  • Committed-value validation
  • Scripted and real-time validation

Conducting client-side validation is a key strength of Flex. From a usability point of view, you want your application to do as much prevalidation as possible. This helps to avoid aggravating situations in which a user spends a fair amount of time filling out a large form and then clicks the submit button, only to find something is wrong with the input.

This is exactly the sort of thing that prevents an application from being fluid. In the HTML environment, JavaScript handles some data validation. How many times have you filled out a form, only to find out the username you’ve ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required