Hmmm... Then it seems we have a bug, since I copy-pasted your HTML piece from below, and specified Form's cancel listener : <form jwcid="@Form" delegate="ognl:validationDelegate" cancel="listener:doFormCancel"> and my doFormCancel method gets called *after* pageBeginRender() method. In other words, rewind process isn't bypassed.

-Vjeran

----- Original Message ----- From: "Howard Lewis Ship" <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Wednesday, October 19, 2005 2:17 PM
Subject: Re: How to develop proper form's "Cancel" button?


If you can expect JavaScript on the client, the best way is:

<input type="submit" value="Cancel"
onclick="javascript:this.form.events.cancel();"/>

This will submit the form, bypass client-side handlers of all kinds,
bypass rewind on the server, and invoke the Form's cancel listener.



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

Reply via email to