0

Datebox : problems to select future date (dec 31 2009)

asked 2009-09-16 14:03:09 +0800

lramellavotta gravatar image lramellavotta flag of Italy
200 1 8

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>

delete flag offensive retag edit

14 Replies

Sort by ยป oldest newest

answered 2009-09-16 19:36:14 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Wich zk version do you use?

link publish delete flag offensive edit

answered 2009-09-17 11:59:32 +0800

lramellavotta gravatar image lramellavotta flag of Italy
200 1 8

I use Eclipse Galileo, Apache+tomcat 6.0.18, zk studio 0.9.5, zk-bin 3.6.2.

link publish delete flag offensive edit

answered 2009-09-17 20:48:59 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2009-09-17 20:51:44 +0800

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.

link publish delete flag offensive edit

answered 2009-09-18 05:45:48 +0800

lramellavotta gravatar image lramellavotta flag of Italy
200 1 8

3.6.3 ? But the current version isn't 3.6.2? Where I can download this version?

link publish delete flag offensive edit

answered 2009-09-18 06:00:51 +0800

joylo0122 gravatar image joylo0122
688 1
www.zkoss.org

@lramellavotta

You can find it at SourcForge-ZK.

/Joy

link publish delete flag offensive edit

answered 2009-09-18 06:03:51 +0800

lramellavotta gravatar image lramellavotta flag of Italy
200 1 8

Thanks joylo0122

/Luca

link publish delete flag offensive edit

answered 2009-09-19 10:08:51 +0800

lramellavotta gravatar image lramellavotta flag of Italy
200 1 8

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...

link publish delete flag offensive edit

answered 2009-09-28 13:55:53 +0800

lramellavotta gravatar image lramellavotta flag of Italy
200 1 8

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"

link publish delete flag offensive edit

answered 2009-09-29 09:34:28 +0800

cryandaguo gravatar image cryandaguo
72 2

updated 2009-09-29 10:10:14 +0800

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 ?

link publish delete flag offensive edit

answered 2009-09-29 11:10:45 +0800

lramellavotta gravatar image lramellavotta flag of Italy
200 1 8

I'am sorry, the repository.... has changed...I send now the library here

Luca

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: 2009-09-16 14:03:09 +0800

Seen: 299 times

Last updated: Oct 03 '09

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