You'd have to write your own date validator. It might be easier to change your converter message.
But if you wrote a validator that checks for invalid dates, it should be triggered before your converter runs, so you could still use the converter to capture other kinds of errors.. On Mon, Feb 8, 2010 at 11:12 AM, laredotornado <[email protected]> wrote: > > Hi, > > I'm using MyFaces 1.1.5 with Tomahawk 1.1.7. I have this date input field > on my JSF page ... > > <h:inputText id="Start_Date" size="10" maxlength="10" > value="#{InvoicingReportController.startDate}" > required="true" > validator="#{InvoicingReportController.validateDate}"> > <f:validateLength minimum="10"/> > <f:convertDateTime timeZone="America/Denver" pattern="MM/dd/yyyy" > type="date"/> > </h:inputText> > > and this message in my resource bundle ... > > javax.faces.convert.DateTimeConverter.CONVERSION_detail= Please enter only > numbers and \'/\' in MM/DD/YYYY format in the Date field > > When I type a date that doesn't exist, e.g. "02/30/2010", even though the > date is in the proper format, I get the conversion error message above. How > can I configure my text field so that a different error message is displayed > for dates that don't exist? > > Thanks, - Dave > > > -- > View this message in context: > http://old.nabble.com/Possible-to-distinguish-dates-that-don%27t-exist-from-badly-formatted-ones--tp27502208p27502208.html > Sent from the MyFaces - Users mailing list archive at Nabble.com. > >

