Re: Tapestry 5 Validation on Form Submit

2010-06-02 Thread Claude Dubois

Hello,

I have continued searching information about my validation problem, and I
found a great solution on the forum.

It's a script written by Scott Russel, you will find it 
http://old.nabble.com/Re:-Disabling-onBlur-field-validation-p22179557.html
here .

It allows you to validate components only when the form is submitted,
keeping the error bubbles displayed next to the fields.

Maybe it will be useful to someone else.

Regards,


-
Claude Dubois
-- 
View this message in context: 
http://old.nabble.com/Tapestry-5-Validation-on-Form-Submit-tp28691739p28753624.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Tapestry 5 Validation on Form Submit

2010-05-27 Thread Christophe Cordenier
Hi

After more investigation, it does not sound like a good idea to disable
client validation. Maybe you can remove observers on the
Tapestry.FOCUS_CHANGE_EVENT event in the document element to avoid field
validation on focus lost.

Regards
Christophe.

2010/5/27 Claude Dubois 

>
> Hello Guys,
>
> I'm developping a Tapestry5 app, and I need to validate some fields on form
> submit.
>
> I am using the @Validate annotation, which do what I want, except that the
> field is validated on "blur", e.g. when the user focuses on another field.
>
> I have many fields on my page, and it's quite unpleasant.
>
> Would anyone know how to realize fields validation only when the form is
> submitted?
>
> Thanks
>
> -
> Claude Dubois
> --
> View this message in context:
> http://old.nabble.com/Tapestry-5-Validation-on-Form-Submit-tp28691739p28691739.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Regards,
Christophe Cordenier.

Developer of wooki @wookicentral.com


Re: Tapestry 5 Validation on Form Submit

2010-05-27 Thread Stephan Windmüller

On 27.05.2010 11:49, Christophe Cordenier wrote:


The only solution i see is to disable default clientvalidation and implement
your own.


Is this possible for the select component, too? As far as I see it is 
not possible to disable the validation which checks if the component has 
the empty value selected.


- Stephan

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



Re: Tapestry 5 Validation on Form Submit

2010-05-27 Thread Christophe Cordenier
Hi

The only solution i see is to disable default clientvalidation and implement
your own. I think tapestry will still trigger an event on validate so you
can implement your own strategy on submit only.

Regards,
Christophe Cordenier.

2010/5/27 Claude Dubois 

>
> Hello Guys,
>
> I'm developping a Tapestry5 app, and I need to validate some fields on form
> submit.
>
> I am using the @Validate annotation, which do what I want, except that the
> field is validated on "blur", e.g. when the user focuses on another field.
>
> I have many fields on my page, and it's quite unpleasant.
>
> Would anyone know how to realize fields validation only when the form is
> submitted?
>
> Thanks
>
> -
> Claude Dubois
> --
> View this message in context:
> http://old.nabble.com/Tapestry-5-Validation-on-Form-Submit-tp28691739p28691739.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Regards,
Christophe Cordenier.

Developer of wooki @wookicentral.com


Tapestry 5 Validation on Form Submit

2010-05-27 Thread Claude Dubois

Hello Guys,

I'm developping a Tapestry5 app, and I need to validate some fields on form
submit.

I am using the @Validate annotation, which do what I want, except that the
field is validated on "blur", e.g. when the user focuses on another field.

I have many fields on my page, and it's quite unpleasant.

Would anyone know how to realize fields validation only when the form is
submitted?

Thanks

-
Claude Dubois
-- 
View this message in context: 
http://old.nabble.com/Tapestry-5-Validation-on-Form-Submit-tp28691739p28691739.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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