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]

Reply via email to