-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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:
<combobox readonly="true"> <comboitem label="Choice 1" value="c1"/> <comboitem label="Choice 2" value="c2"/> <comboitem label="Choice 3" value="c3"/> </combobox>
getSelectedIdex() returns -1 (so getSelectedItem() returns null).
==> But if I remove the readonly attribute it works normally :(
Does someone have an idea?
Thanks!
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>
Asked: 2011-07-25 03:03:50 +0800
Seen: 1,304 times
Last updated: Jul 31 '11
ZK studio and eclipse outline problem
ZK Package configuration problem
Eclipse Autocomplete not working in ZUL files...
Syntax Error mark ... help me!
Manual Installation of ZK Studio
Can't see button text whilst running simple demo
Adding Vbox to Center layout in Java