Hi,

I have two buttons in a form, 'prev' and 'next', when user click the 'prev',
it should go back to a previous page without any validation, however,
onValidate fires earlier than onSelectedFromPrev, so the validation is
performed, is there a way to by pass this behavour? thanks.

  private boolean prev;
    void onSelectedFromNext() {
        prev = false;
    }
    void onSelectedFromPrev() {
        prev = true;
    }
    public void onValidateFormFromregForm() throws EncoderException {
        if (prev)
                return;
                else
                   // do validates      
    }
      
-- 
View this message in context: 
http://www.nabble.com/T5%3A-Multiple-submit-buttons-in-a-form-and-onValidate-tp16000971p16000971.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to