Adobe FLEX 2 - CREATING AND EXTENDING COMPONENTS Manual page 224

Creating and extending flex 2 components
Hide thumbs Also See for FLEX 2 - CREATING AND EXTENDING COMPONENTS:
Table of Contents

Advertisement

return results;
}
}
}
In this example, because you are using a single validator to validate three subfields of the
Object passed to the validator, you include the optional second argument to the constructor
for the
ValidationResult
class to specify the subfield that caused the validation error. This
inclusion permits Flex to identify the input component that caused the error, and to highlight
that component in the application.
224
Creating Custom Validators

Advertisement

Table of Contents
loading

Table of Contents