-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I have a problem really "strange" with the field datebox. When I try to select December 31, the field datebox return the 01 October. The other problem is that the onClick event is never triggered (same with onDrop event) ....
Any idea?
<?page title="new page title" contentType="text/html;charset=UTF-8"?> <zk> <window title="new page title" border="normal" width="750px"> Iscrizione/Scadenza/Pagamento <hbox> <datebox id="dtbData_iscrizione" onDrop="onDrop_dtbData_iscrizione(self)"/> <datebox id="dtbData_scadenza" onClick="onClick_dtbData_scadenza(self)" /> <datebox id="dtbData_pagamento" /> </hbox> <zscript> <![CDATA[ void onClick_dtbData_scadenza(Datebox db) { System.out.println("Click"); } void onDrop_dtbData_iscrizione(Datebox db) { System.out.println("Drop"); } ]]> </zscript> </window> </zk>
Wich zk version do you use?
I use Eclipse Galileo, Apache+tomcat 6.0.18, zk studio 0.9.5, zk-bin 3.6.2.
Tested with 3.6.3.
I can select the 31 of December.
The problems with the events seems like a bug. I can trigger the onChanging event, but onClick and onDrop doesn't work.
Please, post it to the ZK Bugs.
3.6.3 ? But the current version isn't 3.6.2? Where I can download this version?
I installed the latest version but the problem is not solved. If I write manually 31/12/2009 th datebox field always return 01/10/2009...
RESOLVED.
if you do not specify the format of the field, it use the internal format of the JVM ... (read on source lines 74-78)
format="dd/MM/yyyy"
select 2009-09-28 then manual write 2112-11-28 then try to select date, the open date select box is still 2009-09-28 and then you select any date, the new selected date(like 2009-09-21) can only change the day(result 2112-11-21).
this happened in zk 5.0.0-FL and zk 5.0.0-RC
it is fixed in the zk demo in zkoss site is version 3.6.3 but I can not find it here http://sourceforge.net/projects/zk1/files/
where I can get the new zk 3.6.3 ?
Asked: 2009-09-16 14:03:09 +0800
Seen: 299 times
Last updated: Oct 03 '09