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 ...
Get Flex 4 in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.