I think if you define that translator as a bean and set the message property for the bean, that should work. Look at the AbstractTranslator and NumberTranslator classes, the code is mostly in there.
On 10/18/05, Vjeran Marcinko <[EMAIL PROTECTED]> wrote: > > Hi. > First time using 4.0 validating mechanism, so some questions have risen: > 1. Is it possible to specify error message inside binding string for > *translator* when it can't translate some value, similar to validators > where > I can put something like validator:required[This is required]. It seems to > me that translator:number[Value has to be numeric] doesn't work ?! > 2. How do I override default validation messages ? I am interested in both > declarative (using some .property file) and programmatic way? > 3. Is there any use of ValidationConstraints? Should it be deprecated ? > > Regards, > Vjeran > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
