Hi,

I'm using tomahawk12-1.1.7-SNAPSHOT, since we are migrating to JSF 1.2, and where we use t:inputCalendar we get an IllegalArgumentException.

02/09/2008 18:02:32 com.sun.faces.lifecycle.Phase doPhase
SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: / cadastrorepresentante/cadastrorepresentante.jsp) Exception thrown during phase execution: javax .faces [EMAIL PROTECTED]
02/09/2008 18:02:32 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.IllegalArgumentException
        at java.sql.Date.getHours(Date.java:156)
at org .apache .myfaces .dateformat.SimpleDateFormatter.formatOps(SimpleDateFormatter.java:835) at org .apache .myfaces .dateformat.SimpleDateFormatter.format(SimpleDateFormatter.java:1203) at org.apache.myfaces.custom.calendar.HtmlCalendarRenderer $CalendarDateTimeConverter.getAsString(HtmlCalendarRenderer.java:1183) at org .apache .myfaces .custom .calendar.HtmlCalendarRenderer.renderPopup(HtmlCalendarRenderer.java: 197) at org .apache .myfaces .custom .calendar.HtmlCalendarRenderer.encodeEnd(HtmlCalendarRenderer.java:148) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java: 861)
(...)


I've downloaded the sources and attached to my project, so I can debug to the error line:

        context.hour = date.getHours();

And when it tries to call getHours() throws the exception.

I have tried to change from java.sql.Date to java.util.Date and the error persists. Changing from t:inputCalendar to t:inputDate works well.

Anyone else is having the same problem?

This page was working with tomahawk 1.1.6.

Regards,
Fernando Madruga Pinheiro

Reply via email to