Re: Tapestry 5.0.15 DateField localization problem [patch included]

2008-10-20 Thread Mikaël Cluseau
I think it should work, but I'm not absolutly sure. Since you can't select the time zone in the calendar (hopefully!), you may be right to avoid transfering timezone information, because it could change the day when going from/to the server to/from the client. Example. I'm at GMT+11. If write the

Re: Tapestry 5.0.15 DateField localization problem [patch included]

2008-10-17 Thread Howard Lewis Ship
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]> wrot

Re: Tapestry 5.0.15 DateField localization problem [patch included]

2008-10-15 Thread Konstantin
itself. AFAIK, it work flowlessly. > -- View this message in context: http://www.nabble.com/Tapestry-5.0.15-DateField-localization-problem-tp19723586p19989363.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Tapestry 5.0.15 DateField localization problem [patch included]

2008-10-14 Thread Mikaël Cluseau
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 ==

Re: Tapestry 5.0.15 DateField localization problem

2008-10-05 Thread Mikaël Cluseau
Well... for this to work cleanly, you also need to add an "if" around the whole datefield-tzfix.js, otherwise you get an error when no datefields exist on your page: -snip--snip--snip--snip- if (Tapestry.DateField != null) { [...previous file contents...] } -s

Re: Tapestry 5.0.15 DateField localization problem

2008-10-05 Thread Mikaël Cluseau
Hello people, Thanks for your fix Konstantin ! For those (like me) who are using a layout/border, I've refactored your code in a mixin that includes the workaround javascript in a mixin suitable for inclusion in layouts. This is a global fix that works for datefields in beanforms. Here's my mixi

Re: Tapestry 5.0.15 DateField localization problem

2008-10-01 Thread Doublel
That is right ,Thanks a lot. 2008/10/2 Jecki <[EMAIL PROTECTED]> > On Thu, Oct 2, 2008 at 7:20 AM, Doublel <[EMAIL PROTECTED]> wrote: > > Thank you for your fix, It can work by default. but When i user > > t:format="/mm/dd" for dateFIeld to format the data ,it return > > '2008/00/26' too .t

Re: Tapestry 5.0.15 DateField localization problem

2008-10-01 Thread Jecki
On Thu, Oct 2, 2008 at 7:20 AM, Doublel <[EMAIL PROTECTED]> wrote: > Thank you for your fix, It can work by default. but When i user > t:format="/mm/dd" for dateFIeld to format the data ,it return > '2008/00/26' too .the month is always "00". > > I believe the format should be "/MM/dd" a

Re: Tapestry 5.0.15 DateField localization problem

2008-10-01 Thread Doublel
timezones: EEST, EET. So you'll have to add your own > too > in datefield-tzfix.js script see attachement. > http://www.nabble.com/file/p19756273/datefield-tzfix.js datefield-tzfix.js > -- > View this message

Re: Tapestry 5.0.15 DateField localization problem

2008-10-01 Thread Konstantin
ld-tzfix.js script see attachement. http://www.nabble.com/file/p19756273/datefield-tzfix.js datefield-tzfix.js -- View this message in context: http://www.nabble.com/Tapestry-5.0.15-DateField-localization-problem-tp19723586p19756273.html Sent from the Tapestry -

Re: Tapestry 5.0.15 DateField localization problem

2008-09-29 Thread Doublel
I encounter the same problem. I use: In FF explorer I choose today It return "2008/00/13". In IE explorer I run into javascrip error 'style' is null or not an object. and when I second choose date It return "2008/00/13". too -- 得与失都是生活

Tapestry 5.0.15 DateField localization problem

2008-09-29 Thread Konstantin
x would be changing date.toString() to date.getGMTString() - which is deprecated long time ago. -- View this message in context: http://www.nabble.com/Tapestry-5.0.15-DateField-localization-problem-tp19723586p19723586.html Sent from the Tapestry - User mailing list archive at

Re: DateField localization

2008-02-18 Thread Davor Hrg
date field format parameter is working for 5.0.9 however, changing to a apache license compatible calendar made that parameter temporarily unavailable in 5.0.10 browse mailing list archives for format examples On Feb 18, 2008 10:53 AM, Steph <[EMAIL PROTECTED]> wrote: > How do we set the format o

DateField localization

2008-02-18 Thread Steph
How do we set the format of the DateField component ? I can't find any information or sample on that subject ... Thanks in advance ?