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.

On 10/19/05, Vjeran Marcinko <[EMAIL PROTECTED]> wrote:
> Hi.
>
> Canceling form has been problematic prior to 4.0, but now, Form has "cancel"
> listener that would avoid rewind process, and it says in description that it
> should be invoked by javascript event.
>
> Does it mean that proper way to achieve "Cancel" button (beside "Submit") is
> to use Button component that would have "onclick" handler doing form
> cancellation ?
>
> Regards,
> Vjeran
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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

Reply via email to