You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Sebastian Hennebrueder <us...@laliluna.de> on 2009/08/07 00:19:57 UTC

5.? to 5.1 JavaScript validation changed?

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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org