0

Why listbox checkmark=true shows me radiobutton and not checkbox ??

asked 2012-02-27 18:28:39 +0800

GuzZpaWn gravatar image GuzZpaWn
111 2

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>

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2012-02-28 15:44:00 +0800

gganassin gravatar image gganassin flag of Luxembourg
540 6
http://www.hybris.com/

uh - just migrated from 5.0.10 to 6 and have the same problem here.

link publish delete flag offensive edit

answered 2012-02-29 01:23:01 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

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);

link publish delete flag offensive edit

answered 2012-03-05 21:37:34 +0800

GuzZpaWn gravatar image GuzZpaWn
111 2

thank you.... it works ok with that adjustment...

link publish delete flag offensive edit

answered 2012-10-17 14:17:22 +0800

trunks gravatar image trunks
12

hi all

please post an example where you solve this problem, thanks

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-02-27 18:28:39 +0800

Seen: 394 times

Last updated: Oct 17 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More