-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I have a listbox with attributes multiple="true" and checkmark="true".
When the listbox is created (with no items because items only appears when a button is clicked) the checkmark to select multiple items is displayed in the listheader.
But when I fill the listbox with data (binder.loadComponent(LBFicheros)) the checkbox disappears and a radiobutton is displayed in each row. I checked if the listbox for some reason changes to multiple="false" but is not so, listbox is still multiple.
Any idea why is this happening?
My listbox:
<listbox id="LBFicheros" multiple="true" checkmark="true" width="100%" vflex="1" mold="paging" autopaging="true" model="@{VentanaFicheros$composer.listaBeans}"> <listhead sizable="true"> ... </listhead> <listitem id="fila" self="@{each=ServidorBean}" value="@{ServidorBean}"> <listcell label="@{ServidorBean.Tabla}" tooltiptext="@{ServidorBean.Tabla}" style="text-align:left;white-space:nowrap"/> .... </listitem> </listbox>
I haven't used ListModelList directly yet, I always pass an ordinary Java List (ArrayList).
I think you need to set multiple flag on that ListModelList before you provide it to the ZK binding.
Asked: 2012-01-05 09:00:26 +0800
Seen: 1,424 times
Last updated: Feb 21 '12