In Tapesty 4.0, add a little javascript to the Submit component:

  <binding name="onclick">
    javascript:this.form.events.cancel();
  </binding>


This causes the form to be submitted in mode "cancel", and bypasses
client-side input field validation.  You can add a cancel listener to
your Form component to receive notification of this client-side event.

On 8/12/05, Jone. hwk <[EMAIL PROTECTED]> wrote:
> Hi,
> There two submit component in one form:"save","cancel",the "cancel" just 
> cancel
> the form.But when enabling client validation,the javascript validating also
> applyed to "cancel" button,this is not what we expected!
> Is there a way to disable "clientValidationEnabled" funtion to a
> single "submit" component?
> Thanks in advance.
> Jone.hwk
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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