You are right!
Using the client side validation the follows method is not called:

void onValidateForm() {
        if (saveMode) form.clearErrors();
}

If you use ... <t:form t:clientValidation="false" ...
the above workaround works.

Roberto.


Pedro Januário ha scritto:
Hi Roberto,

I suppose that you are talking about server side code, Form.clearError(),
isn't it?
The main problem is on client side.


2009/4/6 Tapestry Infodea <tapes...@infodea.it>

Hi,
you can use Form.clearErrors() when you save.

Roberto.

Pedro Januário ha scritto:

 Hi Jorge,
Probably i didn't explained very well.
The idea was to kept the client validation turned on, and i don't want to
display any required validation message on save submit button.
The aproach that you mentioned, need's client validations turned off.

Regards.

2009/4/6 Jorge Saridis <jsari...@gmail.com>

 Use onSubmit form the save button, and onSuccess for the finish one

http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html

2009/4/6 Pedro Januário <prnjanua...@gmail.com>:

Hi,

I have the need to use a form with two submit buttons: save & finish.
The form contains 3 required fields.
I would like to know if it's possible to bypass the required field
validation on the save button submit.

Is there any workaround on it?

--
Regards,
Pedro Januário

 ---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to