0

datebox in spanish, french, italian is paintinw whit one day-of-week error

asked 2012-07-17 11:05:40 +0800

aztiak gravatar image aztiak
3

Hi,

I am using a datebox in ZK CE-6.0.1, with this code:

Datebox campoFecha=new Datebox();
campoFecha.setParent(this);
campoFecha.setStyle("text-align: center;");
campoFecha.setFormat("dd/MM/yyyy");
campoFecha.setLocale("es_es");

when i try this code, i see

:

Days of week are incorrectly painted in calendar.
we can see selected wednesday 17/06/2012, but 17/06/2012 is Tuesday.

I try locale it, and fr, and i see the same error.

Is there any error in my code or is a bug in datebox?

Thanks a lot

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2012-07-17 11:36:06 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

I tried following in zksandbox and fiddle, it doesn't have your issue.
could you confirm following in zksandbox, fiddle and your env.



<window id="win" title="My First Window" border="normal" width="200px">
<datebox style="text-align:center" format="dd/MM/yyyy" locale="es_es"/>
<zscript>
Datebox campoFecha=new Datebox();
                campoFecha.setParent(win);
                campoFecha.setStyle("text-align: center;");
                campoFecha.setFormat("dd/MM/yyyy");
                campoFecha.setLocale("es_es");

</zscript>
</window>

link publish delete flag offensive edit

answered 2012-08-23 11:58:03 +0800

wehe gravatar image wehe
6

Hi, I'm seeing the same problem using the "de" locale;

I'm unable to reproduce it in fiddle,
but cannot get rid of that show stopper in my GRAILS app using zkgrails (2.0.0.M7 which uses zkoss 6.0.0)...

I'll check back with the plugin developers (zkgrails)
but it seems obvious from aztiak's post that it isn't a sole problem of using zkoss from grails.

cheers, Werner

link publish delete flag offensive edit

answered 2012-08-23 12:40:46 +0800

wehe gravatar image wehe
6

BTW,
it seems the problem has to do with the column headers (day names) - they get shifted when I change the locale from 'en' to 'de':


thanks & cheers, Werner

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-07-17 11:05:40 +0800

Seen: 198 times

Last updated: Aug 23 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More