Button: 
http://www.chenillekit.org/chenillekit-tapestry/ref/org/chenillekit/tapestry/core/components/Button.html

On 07/04/2009, at 2:07 PM, Geoff Callender wrote:

Does this example help? It uses chenillekit's button with type <> "submit" when client-side validation is not wanted.

        
http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/wizard/usingformfragments/START/1239080805266

Geoff

On 07/04/2009, at 3:24 AM, Pedro Januário wrote:

I would like to have client validation working...
My aproach was to implement the required validation on server side, on
onValidateForm.
That way the rest of the client validation still working on.
But i think this should be one easy stuff... but i don't know if tapestry
allows to bypass client side validation.



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

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




--
Cumprimentos...
Pedro Januário


Reply via email to