Skip to content

Instantly share code, notes, and snippets.

@radityopw
Created October 30, 2011 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radityopw/1325856 to your computer and use it in GitHub Desktop.
Save radityopw/1325856 to your computer and use it in GitHub Desktop.
checkbox in listbox with zk framework...
<?xml version="1.0" encoding="UTF-8"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="win"?>
<!--
index.zul
{{IS_NOTE
Purpose:
Description:
History:
Mon Jun 12 21:23:35 2006, Created by tomyeh
Fri May 01 04:36:35 2009, Modified by stera
}}IS_NOTE
Copyright (C) 2006 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
}}IS_RIGHT
-->
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="win" apply="controller.MyListBox">
<listbox id="listOne" model="@{win$composer.daftarMahasiswa}" multiple="true"
checkmark="true" >
<listhead>
<listheader label="nama"/>
<listheader label="nrp"/>
</listhead>
<listitem self="@{each='mahasiswa'}">
<listcell label="@{mahasiswa.nama}"/>
<listcell label="@{mahasiswa.nrp}"/>
</listitem>
</listbox>
<button id="selectBtn" label="Pilih!"/>
</window>
</zk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment