You can specify your own converter for inputCalendar instead of using
the HtmlCalendarRenderer.CalendarDateTimeConverter that it defaults
to.

You could also change event to take a Date signature and convert a
Date to a Timestamp in the getter and setter.

-Mike

On 8/15/05, Neal Haggard <[EMAIL PROTECTED]> wrote:
> Any idea how to handle using a java.sql.Timestamp object in the inputCalendar 
> component.  Here's our JSP code:
> 
> <t:inputCalendar id="date" renderAsPopup="true"
>                         renderPopupButtonAsImage="true" 
> value="#{event.currentDate}" />
> 
> Our event has the following:
> 
>      public java.sql.Timestamp getCurrentDate();
> 
> When we try and go to the page, we get the following EL exception:
> 
>      javax.servlet.jsp.el.ELException: Attempt to coerce a value of type 
> "java.util.Date" to type "java.sql.Timestamp"
> 
> Has anyone gotten around this?
> 
> ----------------------------------------------
> Neal Haggard
> Senior Systems Developer
> Knowledge Management Center
> SAS Instititute
> 
>

Reply via email to