I think you should use the onValidateForm for both field level and cross-field validation to keep your validation in the correct callback. I would just use nested loops to first check for field level validation then if successful, perform cross field validation.
Benny Law wrote: > > Hello, > > I am new to Tapestry 5 and have a question about the ValidateForm event. I > understand that this event is where cross-field validations should be > done, > but I find that before I can do the validations, I first need to check if > there are any field-level validation errors with those fields that I want > to > cross validate. To avoid this extra work, I end up doing my cross-field > validations in the Success event instead. It seems to me that the > ValidateForm event would be more useful if it was triggered only when > there > are no field validation errors, similar to the Success event. Did I miss > something, or are there others who share my view? > > Thanks in advance, > > Benny Law > > -- View this message in context: http://www.nabble.com/ValidateForm-Event-tp25205192p25208900.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org