-
Bug
-
Resolution: Won't Fix
-
Normal
-
None
-
6.5.2
-
Spring Tool Suite 3.2.0
ZK Studio 2.0.0
Zk Release 6.5.2
Firefox 22 / IE 8
-
None
Hi,
Please excuse my english...
onCancel is not fired in the good window.
I have simplified a code to explain you : in the 3 samples below, if you press key Echap, you should see message *onCancel MODAL* ant not *onCancel Main*
Try this and just click Echap :
<?page title="new page title" contentType="text/html;charset=UTF-8"?> <zk> <window id="main" title="new page title" border="normal" onCancel='alert("onCancel Main")'> New Content Here! <window id="zoneSaisieControleurSIALE" mode="modal" border="normal" title="modal" width="200px" onCancel='alert("onCancel MODAL")'> Press echap <textbox></textbox> </window> </window> </zk>
You'll see this message : *onCancel MODAL* : It's OK
Now, try this (just remove textbox tag) :
<?page title="new page title" contentType="text/html;charset=UTF-8"?> <zk> <window id="main" title="new page title" border="normal" onCancel='alert("onCancel Main")'> New Content Here! <window id="zoneSaisieControleurSIALE" mode="modal" border="normal" title="modal" width="200px" onCancel='alert("onCancel MODAL")'> Press echap </window> </window> </zk>
You'll see this message : *onCancel Main* : ?????? Why no *onCancel MODAL* ??
You can try this too (disable the textbox):
<?page title="new page title" contentType="text/html;charset=UTF-8"?> <zk> <window id="main" title="new page title" border="normal" onCancel='alert("onCancel Main")'> New Content Here! <window id="zoneSaisieControleurSIALE" mode="modal" border="normal" title="modal" width="200px" onCancel='alert("onCancel MODAL")'> Press echap <textbox disabled="true"></textbox> </window> </window> </zk>
You'll see this message : *onCancel Main* : ?????? Why no *onCancel MODAL* ??
So, what can I do to have onCancel Event in the right window all the time ?
Thank you.