Problem fixed ... it appears the form doesn't emit a validate event, it emits
a validateForm event!
Toby
- Original Message
From: Toby Hobson [EMAIL PROTECTED]
To: tapestry users@tapestry.apache.org
Sent: Monday, 19 May, 2008 11:17:44 PM
Subject: T5 cross-form validation
Hi
According to the T5 site:
After the fields have done their processing, the Form emits avalidate event.
This is a chance to perform cross-form validationthat can't be described
declaratively.
I understood this to mean that a validate event will be fired after the
individual fields have been validated, but it seems this is not the case. I
have found that validate events are fired for each of the fields on the form
but not for the form itself so I need to put my cross-form validation in my
success handler. Not a big problem but I think the docs should be clarified.
Personally I think it would be useful to fire a validate event after the
individual fields have been validated.
Toby