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
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
Looks as a right fix, in my first post I pointed to the root of this problem,
but I'm too lazy to build Tapestry from sources just for this simple fix.
Mikaël Cluseau-3 wrote:
>
> Well I still had stability problems under IE (surprise!) so I tried to
> fix the thing in Tapestry itself. AFAIK, i
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
==
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
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
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
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
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".
2008/10/1 Konstantin <[EMAIL PROTECTED]>
>
> Ok. I've created a workaround.
>
> package myapphere.mixins;
>
> import or
Ok. I've created a workaround.
package myapphere.mixins;
import org.apache.tapestry5.annotations.IncludeJavaScriptLibrary;
import org.apache.tapestry5.annotations.MixinAfter;
@IncludeJavaScriptLibrary("datefield-tzfix.js")
@MixinAfter
public class DateFieldTzFix {
}
-
Using in:
-page class
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
--
得与失都是生活
11 matches
Mail list logo