Re: Client side validation and Form

2006-06-21 Thread Shing Hing Man
Please see my below example. Shing Java file : import org.apache.tapestry.IRequestCycle; public abstract class TestValidateNumber extends BasePage { public abstract double getNumber(); public abstract void setNumber(double num); public abstract Stri

Re: Client side validation and Form

2006-06-21 Thread Simon Raveh
Do you mind posting an example, here is the way I tried using it onclick="document.form.elements.cancel">   class="button" value="Login →"> and the form component The logout method was never called Thanks, Simon Shing Hing Man wrote: I tried canceling

Re: Client side validation and Form

2006-06-21 Thread Shing Hing Man
> 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 su

Client side validation and Form

2006-06-20 Thread Simon Raveh
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 s