struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kishen Simbhoedatpanday <>
Subject Re: DateTimePicker (type time) problem
Date Thu, 28 Jun 2007 14:47:46 GMT

Thank you Jeromy!

When using the 'displayFormat="h:mm a"' in the datetimepicker tag and
changing currentTimePart to String, it will result the given Hours and
Seconds on the page.

So we set the following in our Action method:

we get the following stacktrace:

2007-06-28 16:40:44,969 ERROR http-8080-Processor21
components.DateTimePicker.format(316) : Could not parse date
java.text.ParseException: Unparseable date: "16:15"
	at java.text.DateFormat.parse(
	at org.apache.struts2.components.UIBean.end(

You got them too?

Jeromy Evans - Blue Sky Minds wrote:
> We use:
> <s:datetimepicker name="incomingAnswer" displayFormat="h:mm a"
>                   type="time"
>                   value="%{defaultAnswerTime}"
>                   required="true"/>
> where incomingAnswer and defaultAnswerTime are Strings in the hh:mm 
> format.  The string's components can then be applied to your Calendar 
> object within the action.
> As discussed in recent threads, this version of the datetimepicker has a 
> few issues that can avoided if you use String instead of Dates.
> An alternative you could try is to use javascript to combine/separate 
> the value of the two datetimepickers to/from a single RFC3339 string, in 
> which case the standard Date converter should work.

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message