IN THIS CHAPTER
Form controls with the
Validating data entry
Sharing data with value objects and custom events
When you start to integrate data into a Flex application, you have to solve the problem of how to get data into the Flex runtime environment. As you have seen in earlier chapters, you can embed data into the application using hard-coded MXML or ActionScript, or by integrating data into the application with the
<fx:Model> tag. These strategies, however, only work for data that's both small and static.
For existing data that's retrieved from a server-based resource, such as a database or an EXtensible Markup Language (XML) file, you can use Remote Procedure Call (RPC) components such as
HTTPService, WebService, and
And then there's data that comes from the user. Unless an application is used exclusively with static data or content retrieved from a server at runtime, a data-centric application must collect data from the user. In this chapter, I describe using the following tools for building data entry form components:
Form, FormHeading, and
FormItem components for laying out a data entry form
Validator components to validate a user's data entry
Custom value object and event classes to share data with the rest of the application ...