That way of canceling a form is deprecated in 4.1, and for a good reason...

You should use tapestry.form.cancel(formId)

See http://tapestry.apache.org/tapestry4.1/javascript/form.html

However, AFAIK the old way is supposed to still be valid (though
deprecated).

Jesse ?



S

Leo Sakhvoruk wrote:
> I just noticed that several of the sites I've created and that run on
> Tapestry 4.0.x as well as 4.1.x seem to not work as they originally
> did. Specifically, the forms that have a cancel button with a
> 'document.form-name.events.cancel();' for an onclick event seem to
> submit the form via the 'success' listener as well as the 'cancel'
> one. Is there a new way of preventing the regular form submission via
> a submit button that has a cancel listener attached to it?
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to