-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I want to select severeal options from my listbox this works fine with zk CE 5.0.8, now I moved to zk ce 6.0.0 and this look like this
what's wrong??
<zk xmlns="http://www.zkoss.org/2005/zul"> <window id="permisoWIN" title="Asignar permiso" closable="true" apply="pbz.ctrl.man.win.PermisoWIN" border="normal" use="pbz.ctrl.ext.MyWindow" width="630px" height="390px"> <toolbar> <toolbarbutton id="btnSave" label="Guardar" image="/ico/Save24.png" /> <toolbarbutton id="btnCancel" label="Cancelar" image="/ico/Cancel24.png"/> </toolbar> <div style="padding:1% 0% 2% 0%;"> <listbox id="listbox" checkmark="true" multiple="true" height="300px" > <listhead> <listheader label=" " width="60px"/> <listheader label="Formulario" width="270px"/> <listheader label="Grupo" width="260px"/> </listhead> </listbox> </div> </window> </zk>
uh - just migrated from 5.0.10 to 6 and have the same problem here.
There has been some adjustment in ZK6 such that developer can handle the Listbox all thru its model. Please refer the following link:
http://books.zkoss.org/wiki/Small_Talks/2011/November/ZK_6:_Upgrade_Notes#The_selection_and_opened_objects_are_maintained_in_model.2C_not_UI
You can set multiple via Selectable(All ListModelXxx implemented this interface) as specified here
http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/ext/Selectable.html#setMultiple%28boolean%29model.setMultiple(true);
Asked: 2012-02-27 18:28:39 +0800
Seen: 394 times
Last updated: Oct 17 '12