I have a component which is a wrapper around some form fields.  (Imagine an
'edit address' component.)

If I want to provide some custom validation, is there a way to listen to the
enclosing form's validation event?  The problem is that the form is defined
in the page, not in my component. Right now, the page catches the validation
event and then calls a validate(Form form) method on my component.

But I'm wondering if there's a way to have my component do this
automatically, so that future users won't have to remember to hook this up.
(Plus, the page's validation event handler does nothing else, so it's kinda
silly.)

Any tips greatly appreciated!

Michael

Reply via email to