Re: Localized warning in Validator

2017-07-05 Thread Maxim Solodovnik
+1 to unify this I would expect similar behavior from all 3 (error, warn, info) Never used warn BTW On Wed, Jul 5, 2017 at 3:56 PM, Martijn Dashorst wrote: > Hi Virginie, > > Your code doesn't look wrong. > > Here's a snippet from one of our applications that

Re: Localized warning in Validator

2017-07-05 Thread Martijn Dashorst
Hi Virginie, Your code doesn't look wrong. Here's a snippet from one of our applications that validates a social security number. It's a bit less verbose than your example, but seems to work similarly. And you've already used ValidationError so you are aware of its existence. public class

Localized warning in Validator

2017-07-05 Thread Virginie Garcin
Hello, I have a field validator. I want to be able to choose if it will be an error (blocking the action) or a warning (just display a non-blocking warning). Here is the code I use, that is working except the error/warning is not localized: public class ValidatorWithWarningOption implements