-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi;
I have combobox binded to controller list :
<z:combobox id="itemCMB" width="100px" model="@{controller.itemList}" autodrop="true"> <z:comboitem self="@{each=item}" value="@{item.value}" label="@{item.label}"/> </z:combobox>
itemCMB.setSelectedIndex(2);
org.zkoss.zk.ui.impl.UiEngineImpl handleError:1133 >>org.zkoss.zk.ui.UiException: Out of bound: 2 while size=0 at org.zkoss.zul.Combobox.setSelectedIndex(Combobox.java:538)
Other problem is; when i use "selectedItem="@{controller.selItem}"
and in controller "selItem=2"; it does not select... (getter and setter methods are available)
What is the problem?
(I am using zk-bin-3.6.5-FL-2011-01-25)
Asked: 2011-02-11 05:56:27 +0800
Seen: 220 times
Last updated: Feb 11 '11