Combobox readonly not works
25 Jul 2011 03:03:50 GMT
31 Jul 2011 19:46:42 GMT
31 Jul 2011 19:46:42 GMT
Hi
I test the code on zksandbox, it's working fine
<zk> <combobox id="cm" readonly="true"> <comboitem label="Choice 1" value="c1"/> <comboitem label="Choice 2" value="c2"/> <comboitem label="Choice 3" value="c3"/> </combobox> <button label="Index" onClick="alert(cm.getSelectedIndex())"></button> </zk>
ZK - Open Source Ajax Java Framework
Hi.
My working Zk version: 5.0.7.1
It's my 3rd project with Zk and I don't understand why the combobox attribute "readonly" not works anymore.
With this simple code:
getSelectedIdex() returns -1 (so getSelectedItem() returns null).
==> But if I remove the readonly attribute it works normally :(
Does someone have an idea?
Thanks!