-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I put
setNonselectableTags("");
I'm using Zk 6.0 CE.
What i'm doing wrong?
Thanks in advance,
Miguel Goncalves
Hi mgw,
I tried the following sample and works fine:
<zk> <zscript> Object[] o = new Object[20]; </zscript> <listbox nonselectableTags=""> <listhead> <listheader label="name"></listheader> </listhead> <listitem forEach="${o}"> <listcell> <textbox value="item ${forEachStatus.index}" inplace="true"></textbox> </listcell> </listitem> </listbox> </zk>
Can you provide more information?
Hi mgw,
You can try set selected item on onFocus event:
<zk> <zscript> Object[] o = new Object[20]; </zscript> <listbox id="listbox"> <listhead> <listheader label="name"></listheader> </listhead> <listitem forEach="${o}"> <listcell> <textbox tabindex="${forEachStatus.index + 1}" value="item ${forEachStatus.index}" inplace="true" onFocus="listbox.setSelectedIndex(self.tabindex - 1)"> </textbox> </listcell> </listitem> </listbox> </zk>
Asked: 2012-04-16 13:29:30 +0800
Seen: 257 times
Last updated: May 07 '12