Re: Localized warning in Validator

2017-07-09 Thread Virginie Garcin
Hello, Thank you for your feedback. I managed to localized my warning, here is how I did, maybe it can help someone with the same concern: public class ValidatorWithWarningOption implements IValidator {  final private TextField field;  final private boolean warning;  

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