im not sure exactly what your usecase is. we have something that is kind of similar, namely new TextField("number", Integer.class); which would type convert the entered string into an Integer and error out if the conversion could not be performed.
but i dont think this is the exact match to whatever it is you are trying to achieve. -igor On 8/18/07, Stojce Dimski <[EMAIL PROTECTED]> wrote: > > Hi Igor, > > First thing, thanks, your hints gave me the direction and I solved the > issue... I like the approach 'Classname.Key' and I think it's right for > this category of generic validators as are those in 'validator' > package. > It was just a question of overriding one method: > > @Override > public void error (final IValidatable validatable, final String > resourceKey) { > super.error(validatable, resourceKey() + "." + resourceKey); > } > > and everything worked like a charm ;-) > > What do you think of adding this validator in trunk ? > > Cheers, > Stojce > > > > ___________________________________ > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: > http://it.docs.yahoo.com/nowyoucan.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >