webtier@glassfish.java.net

Error messages when converting time with f:convertDateTime

From: <webtier_at_javadesktop.org>
Date: Tue, 31 Aug 2010 03:36:13 PDT

Hi,

I have problem with f:convertDateTime, that it seems to use the error message javax.faces.converter.DateTimeConverter.DATE_detail when I convert time (i.e. it should use javax.faces.converter.DateTimeConverter.TIME_detail).

The issue, I'm guessing, is that I use a pattern, and thus it does not know if it's a date or a time. This is what I'm trying:
  <f:convertDateTime type="time" pattern="#{timePattern}" />

"timePattern" is "hh.mm".

Even though type="time" is specified, it still uses the DATE_detail error message. Is this an bug or is my assumption that it should use the TIME_detail error message wrong?

TIA,
Vetle
[Message sent by forum member 'vetler']

http://forums.java.net/jive/thread.jspa?messageID=481324