Re: Distinguish between error messages for date

2011-06-27 Thread Igor Vaynberg
you can write your own converter that distinguishes the two situations and throws a ConversionException with an appropriate resource key. -igor On Mon, Jun 27, 2011 at 10:48 AM, Anna Simbirtsev wrote: > Hi, > > I have a date text field and I want to give 2 different error messages for > differen

Distinguish between error messages for date

2011-06-27 Thread Anna Simbirtsev
Hi, I have a date text field and I want to give 2 different error messages for different errors: 1) invalid date 2) invalid date format DateTextField myField = new DateTextField("myField", "-MM-dd") { private static final long serialVersionUID = 1L;