Do you mind posting an example, here is the way I tried using it

<td><input type="submit" class="button" value="&larr; Back" onclick="document.form.elements.cancel"> &nbsp; <input type=submit class="button" value="Login &rarr;"></td>

and the form component

<component id="form" type="Form">
       <binding name="success" value="listener:checkToken"/>
       <binding name="stateful" value="false"/>
       <binding name="clientValidationEnabled" value="true"/>
       <binding name="cancel" value="listener:logout"/>
   </component>

The logout method was never called

Thanks,

Simon

Shing Hing Man wrote:
I tried canceling the form using
document.form.events.cancel as it shows in the form component document but this doesn't


That's strange. The cancel parameter in the Form
component works for me.
Shing

--- Simon Raveh <[EMAIL PROTECTED]> wrote:

Hi,

I have a simple form with two submit components.
The first one (Revert) should revert and take the
user back, the second one (Save) save the changes.
I have client side validation enabled.
My problem is that I want to validate the input only
if the user click on the submit component that save the changes and not when the user decided to revert.
Is there a way to tell Tapestry to bypass client
side validation.
I tried canceling the form using
document.form.events.cancel as it shows in the form component document but this doesn't
work.

Thanks,
Simon


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



Home page :
  http://uk.geocities.com/matmsh/index.html


                
___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

`

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

Reply via email to