Client side validation is still not perfect so its disabled by default.  More advanced users, who do a bit more client-side scripting, found that the client side validation was getting in their way (it was preventing them from programattically submitting forms).  To maintain best backwards compatibility, the default was turned off.
----- Original Message -----
Sent: Wednesday, October 30, 2002 2:05 PM
Subject: [Tapestry-developer] Client-Side validation seems to default to OFF

I've been struggling to get client-side validation working and it looks like there is a bug or documentation error. According to the ValidField documentation (and also the comments in BaseValidator.java), client-side validation should default to ON but that appears not to be the case.
 
Here is the relevant line in BaseValidator.java :

private boolean _clientScriptingEnabled = false;

It's easy enough to work around (just specifically setting it to true in the XML files) but can you tell me what the intended behavior is?

The learning curve for Tapestry is pretty steep and there are a lot of things I currently have no idea how to do, but so far it looks pretty cool.  Is there a place yet for user-submitted components and validators.  I could use some extra validators (credit-card, email, etc.) and it would be nice if there was an FTP area to download them or, if I end up writing them myself, upload them.

 

Cheers,

Brien Voorhees

 

Reply via email to