Hi, John.
My previous message wasn't any good. Sorry. :)
The error box is one of components rawChilds. I guess what you need to check
is UIComponents validationResultHandler() method.

validationResultHandler()method   public function
validationResultHandler(event:ValidationResultEvent<http://livedocs.adobe.com/flex/2/langref/mx/events/ValidationResultEvent.html>
):void <http://livedocs.adobe.com/flex/2/langref/specialTypes.html#void>

Handles both the valid and invalid events from a validator assigned to this
component.

You typically handle the valid and invalid events dispatched by a validator
by assigning event listeners to the validators. If you want to handle
validation events directly in the component that is being validated, you can
override this method to handle the valid and invalid events. You typically
call super.validationResultHandler(event) in your override.
R.

On 4/26/07, Roman Protsiuk <[EMAIL PROTECTED]> wrote:

Is Validator you use required=true?

R.

On 4/26/07, John Menke <[EMAIL PROTECTED]> wrote:
>
>   How do i get validation errors to appear next to corresponding fields
> in a component that i have on an .mxml page?
>
> I have a custom component that contains text fields. I can validate
> the component with a custom validator but i cannot get the error to
> display next to the field.
>
> Any suggestions?
>
> >


Reply via email to