You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2007/10/19 03:44:30 UTC

T5: To submit or to success?

Hi,

in a form, after onValidate there are still two events: onSubmit and
onSuccess, onSuccess will be triggered only everything pass validation, I
use onSuccess all the time, I'm wondering in what situation we should use
onSubmit? Tnx,
A.C.
-- 
View this message in context: http://www.nabble.com/T5%3A-To-submit-or-to-success--tf4650689.html#a13287032
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: To submit or to success?

Posted by Nick Westgate <ni...@key-planning.co.jp>.
For a use case where some action doesn't depend on validation.
Perhaps there some parts of a page are validated, but a cancel
or delete button or something would need to operate regardless.

Cheers,
Nick.


Angelo Chen wrote:
> Hi,
> 
> in a form, after onValidate there are still two events: onSubmit and
> onSuccess, onSuccess will be triggered only everything pass validation, I
> use onSuccess all the time, I'm wondering in what situation we should use
> onSubmit? Tnx,
> A.C.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org