The fix I implemented was to use a simple number (milliseconds since the epoch) as the transfer format. I'm concerned there may be a time zone issue though, when the browser time zone is not the same as the server time zone.
On Tue, Oct 14, 2008 at 4:59 PM, Mikaël Cluseau <[EMAIL PROTECTED]> wrote: > Well I still had stability problems under IE (surprise!) so I tried to > fix the thing in Tapestry itself. AFAIK, it work flowlessly. > > Comments welcome ;) > > Index: > /home/nwrk/workspaces/isi/hatch/tapestry-core-svn/src/main/java/org/apache/tapestry5/corelib/components/DateField.java > =================================================================== > --- > /home/nwrk/workspaces/isi/hatch/tapestry-core-svn/src/main/java/org/apache/tapestry5/corelib/components/DateField.java > (revision 704286) > +++ > /home/nwrk/workspaces/isi/hatch/tapestry-core-svn/src/main/java/org/apache/tapestry5/corelib/components/DateField.java > (working copy) > @@ -147,6 +147,9 @@ > return defaultProvider.defaultValidator("value", resources); > } > > + private static final DateFormat EXCHANGE_FORMAT = new > SimpleDateFormat( > + "EEE MMM dd hh:mm:ss 'GMT'Z yyyy", Locale.ENGLISH); > + > /** > * Ajax event handler, used when initiating the popup. The client > sends the input value form the field to the server > * to parse it according to the server-side format. The response > contains a "result" key of the formatted date in a > @@ -162,7 +165,7 @@ > { > Date date = format.parse(input); > > - response.put(RESULT, date.toString()); > + response.put(RESULT, EXCHANGE_FORMAT.format(date)); > } > catch (ParseException ex) > { > > > -- > .~. > /V\ Mikaël Cluseau <[EMAIL PROTECTED]> > // \\ > /( )\ ISI.NC +687 26.93.18 > ^`~'^ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]