I think you don't even need to expect javascript on the client. If you don't have it you don't need to cancel the validation, as it's not going to happen, anyway.
It's important for me, as my application _must_ work with javascript either enabled or disabled. Good tip, thanks. El Mér, 19-10-2005 a las 08:17 -0400, Howard Lewis Ship escribió: > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
