You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Damir Bijuklic <da...@yahoo.com> on 2006/12/27 22:38:33 UTC

tapestry validation

Hi,

I have a couple of questions regarding tapestry validation, I'm using 4.1.2 with clientValidationEnabled=true:

I have a problem with validation on my pages. It doesn't work unless i include a @Dialog component somewhere on the page?

I'm trying to create a custom validator that will have client side support. Are there examples?
I have tried to create my validator by copying PatternValidator and applying my own logic in validate() but the final class it doesn't exactly work. 
Client side is trying to validate it using a regex pattern i set, and when that passes the vale gets submitted to the form. Now the server side validation kicks in and prevents saving
 of form but the client side isn't automatically notified...

There is another little quirk: when the validation fails it shows the validation dialog multiple times, each time resizing and moving dialog when i click ok. I have noticed the same problem with timetracker sample but in the timetracker case it goes away when i clear the browsers cache.

Damir







		
___________________________________________________________ 
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html