Hello,

the wiki page http://wiki.apache.org/tapestry/Tapestry5HowToAddValidators
describes for Tapestry 5 JavaScript code that doesn't work on my 5.1.0.5 Tapestry with Firefox 3.5

But the following works. When did the API change? I would like to note it in the WIKI.

Tapestry.Validator.foo = function(field, message) {
   field.addValidator(function(value)
   {
       if ('foo' == value)
           throw message;
   });
};


--
Best Regards / Viele Grüße

Sebastian Hennebrueder
-----
Software Developer and Trainer for Hibernate / Java Persistence
http://www.laliluna.de




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

Reply via email to