Suggested case list:
Using timer to refresh a grid
383guest172.69.33.12125nk0uiMay 7, 2020 7:23:47 AMlinkuser model to move item to another listbox
120guest162.158.193.148d0n3krApr 2, 2020 5:28:28 AMlinkDisabled list item row passed to VM-1981
296fatih123160.83.36.13025nk0uiFeb 13, 2018 4:25:44 PMlinkDisabled list item row passed to VM-1981
295fatih123160.83.36.13025nk0uiFeb 13, 2018 4:25:16 PMlinkDisabled list item row passed to VM-1981
294fatih123160.83.36.13225nk0uiFeb 13, 2018 3:30:44 PMlinkgrid sample with ListModel/RowRenderer
816guest80.82.2.1312vah9ajFeb 21, 2017 11:42:21 AMlinkgrid sample with ListModel/RowRenderer
809guest175.98.113.1622vah9ajJan 26, 2017 9:19:33 AMlinkgrid sample with ListModel/RowRenderer
196guest79.185.142.402vah9ajApr 26, 2014 10:53:57 PMlinkgrid sample with ListModel/RowRenderer
195guest79.185.142.402vah9ajApr 26, 2014 10:53:54 PMlinkgrid sample with ListModel/RowRenderer
194guest79.185.142.402vah9ajApr 26, 2014 10:53:51 PMlinkgrid sample with ListModel/RowRenderer
193guest79.185.142.402vah9ajApr 26, 2014 10:53:48 PMlinkgrid sample with ListModel/RowRenderer
192guest79.185.142.402vah9ajApr 26, 2014 10:53:44 PMlinkgrid sample with ListModel/RowRenderer
191guest79.185.142.402vah9ajApr 26, 2014 10:53:40 PMlinkHierarchy table without using ZK PE/EE
1aaknai151.28.135.2131s871daJul 29, 2013 11:02:46 PMlinkgrid sample with ListModel/RowRenderer
128aaknai151.28.135.2132vah9ajJul 29, 2013 7:20:00 PMlinkuser model to move item to another listbox
1TonyQ114.25.109.94d0n3krApr 21, 2012 10:43:27 AMlinkUsing timer to refresh a grid
1TonyQ220.133.44.3725nk0uiFeb 17, 2012 3:17:34 AMlinkFire a event from child iframe
1TonyQ220.133.44.372eupjotFeb 3, 2012 5:04:52 AMlinkTextbox input restriction sample
1TonyQ72.21.245.2431b3nlr0Dec 20, 2011 10:09:10 AMlinkTest web core taglib in ZUL
1TonyQ198.203.175.175ofqkemDec 17, 2011 3:36:08 AMlinkLatest 10 Fiddles :
constraint binding textbox
3guest172.68.151.16220peldaDec 5, 2025 5:08:19 PMlinkAnother new ZK fiddle
2guest172.68.151.16320peldaDec 5, 2025 5:07:51 PMlinkAnother new ZK fiddle
1guest172.68.151.16220peldaDec 5, 2025 5:07:32 PMlinkAnother new ZK fiddle
1peggypeng172.71.154.99364f4neDec 5, 2025 9:24:31 AMlinktooltip example
2guest104.22.23.13rc1ntoDec 4, 2025 2:23:45 PMlinkAnother new ZK fiddle
1guest172.69.134.2277t7602Dec 4, 2025 1:40:46 PMlinkAnother new ZK fiddle
1peggypeng104.22.17.1802df6e3oDec 4, 2025 8:41:29 AMlinkonClose
1peggypeng172.68.87.248j8kd8aDec 3, 2025 4:10:26 AMlinkAnother new ZK fiddle
1peggypeng172.69.134.2271rm7f4eNov 26, 2025 3:31:24 AMlinkZK-5912-Suggestion
2rebeccalai104.22.20.1442qrmiiuNov 26, 2025 2:07:15 AMlinkNew quick orders
412okspry149.166.216.42q0rn3uOct 4, 2012 8:38:06 PMlinkresources
index.zulzul<zk xmlns:w="client">
<script>
function show(thingid) {
var zkwidget = zk.Widget.$('$'+ thingid); //zk
zkwidget.setVisible(true);
}
function hide(thingid) {
var zkwidget = zk.Widget.$('$'+ thingid); //zk
zkwidget.setVisible(false);
}
function addCBC(thingid) {
var withDiffWidget = zk.Widget.$('$withDiff');
var noDiffWidget = zk.Widget.$('$noDiff');
var popupCBCWidget = zk.Widget.$('$popupCBC');
var addCBCWidget = zk.Widget.$('addCBC');
var inCartCBCLabelWidget = zk.Widget.$('inCartCBCLabel');
var zkwidget = zk.Widget.$('$'+ thingid); //zk
if (withDiffWidget.isChecked() || noDiffWidget.isChecked()) {
show('inCartCBCLabel');
show('cartCBC');
hide('addCBC');
}else{
popupCBCWidget.open(addCBCWidget, null, "at_pointer");
}
}
</script>
<style>
.top.z-button .z-button-tl, .top.z-button .z-button-tr,
.top.z-button .z-button-bl, .top.z-button .z-button-br,
.top.z-button .z-button-tm, .top.z-button .z-button-bm,
.top.z-button .z-button-cl, .top.z-button .z-button-cr {
background-image:none;
}
/*.balls.z-button .z-button-cm {
background-image:none;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fbfbfb), to(#eee));
box-shadow: 0px -10px 1px 1px #d6d6d6 inset;
text-shadow:-1px 1px #eee;
border:2px solid #ddd;
color:#555;*/
.selected.z-button .z-button-tl, .selected.z-button .z-button-tr,
.selected.z-button .z-button-bl, .selected.z-button .z-button-br,
.selected.z-button .z-button-tm, .selected.z-button .z-button-bm,
.selected.z-button .z-button-cl, .selected.z-button .z-button-cr {
background-image:none;
}
.selected.z-button .z-button-cm {
background-image:none;
background: transparent;
box-shadow:0px 0px 0px 1px #2E5F7D inset, 0px 8px 6px 6px #1f4d69 inset;
border:2px solid #0C2B3D;
border-radius:8px;
color:#aaa;
}
.top.z-button .z-button-cm {
background-image:none;
background: transparent;
box-shadow:0px 0px 0px 1px #5C8FAD inset;
border:2px solid #0C2B3D;
border-radius:8px;
color:#fff;
}
.header {
}
.headerFixed {
}
</style>
<vbox width="75%" height="100%" style="margin-left:10px;">
<div style="padding-top:.5em; padding-bottom:.5em;
box-shadow:0px -8px 2px 4px #1f4d69 inset, 0px 10px 15px 3px #406780 inset;
background: -webkit-gradient(linear, 0% 0%, 0% 60%, from(#73BAE6), to(#1f4d69)); ">
<button label="Orders" sclass="selected" id="orders" style="width:8em; height: 2.5em; font-size:1em; margin-left:35%"/>
<button label="Sign" sclass="top" id="sign" style="padding-left:1em; width:8em; height: 2.5em; font-size:1em;"/>
</div>
<borderlayout vflex="1" hflex="1" style="margin-left:10px">
<north border="none" size="3.6em">
<div style="background:#fff;
border-bottom:1px solid #bbb; padding-bottom:.5em; padding-top:.5em;">
<label value="Quick Orders Menu" style="font-size:1.3em;"/>
<hlayout style="padding-top:.1em;">
<label value="Scroll to" style="padding-right:4px; padding-left:4px; font-size:.9em; color:grey;"/>
<a label="Labs" style="padding-left:1em; font-size:.9em;"/>
<a label="Radiology" style="padding-left:1em; font-size:.9em;"/>
<a label="Medications" style="padding-left:1em; font-size:.9em;"/>
<a label="Nursing orders" style="padding-left:1em; font-size:.9em;"/>
</hlayout>
</div>
</north>
<center border="none" autoscroll="true">
<div style="margin-right:5px;">
<div sclass="header" style="z-index:1; padding:.24em;
background-image:none;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fbfbfb), to(#eee));
text-shadow:-1px 1px #eee;
border:1px solid #ddd;
opacity:.9;
color:#666;">
<label value="Labs" style="font-weight:bold; font-size:1em;"/>
</div>
<div sclass="headerFixed" visible="false" style="z-index:1; padding:.24em;
background-image:none;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fbfbfb), to(#eee));
text-shadow:-1px 1px #eee;
border:1px solid #ddd;
opacity:.9;
color:#666;">
<label value="Labs" style="font-weight:bold; font-size:1em;"/>
</div>
<listbox style="z-index:-1; border-top:none; border-left:none; border-right:none;">
<listitem>
<listcell>
<checkbox style="padding-right:2%"/>
<label value="EKG #1" style="padding-right:10px; font-weight:bold; font-size:1.15em;"/>
<a label="Last resulted 5/15/2012 (3 months ago)" style="float:right; margin-right:1.5em;
font-size:1.15em; text-decoration:underline; "/>
</listcell>
</listitem>
<listitem>
<listcell>
<checkbox style="padding-right:2%"/>
<label value="EKG #2" style="padding-right:10px; font-weight:bold; font-size:1.15em;"/>
<a label="Last resulted 5/15/2012 (3 months ago)" style="float:right; margin-right:1.5em; font-size:1.15em;
text-decoration:underline; "/>
</listcell>
</listitem>
<listitem>
<listcell>
<checkbox id="addCBC" w:onClick="addCBC()" style="padding-right:2%"/>
<label id="inCartCBCLabel" value="In cart" visible="false" style="padding-left:2.7% ;padding-right:4.6%; color:grey"/>
<label value="CBC " style="padding-right:10px; font-weight:bold; font-size:1.15em;"/>
<label value="with Diff" style="padding-right:10px; font-size:1.15em;"/>
<a label="Last resulted 5/22/2012 (3 months ago)" style="float:right; margin-right:1.5em; font-size:1.15em; text-decoration:underline; "/>
</listcell>
</listitem>
<listitem>
<listcell>
<checkbox w:onClick="addCBC()" style="padding-right:2%"/>
<label value="In cart" visible="false" style="padding-left:2.7% ;padding-right:4.6%; color:grey"/>
<label value="CBC " style="padding-right:10px; font-weight:bold; font-size:1.15em;"/>
<a label="Last resulted 8/20/2012 (3 days ago)" style="float:right; margin-right:1.5em; font-size:1.15em; text-decoration:underline; "/>
</listcell>
</listitem>
<listitem>
<listcell>
<checkbox style="padding-right:2%"/>
<label value="BMP" style="padding-right:10px; font-weight:bold; font-size:1.15em;"/>
</listcell>
</listitem>
<listitem>
<listcell>
<checkbox style="padding-right:2%"/>
<label value="CMP" style="padding-right:10px; font-weight:bold; font-size:1.15em;"/>
</listcell>
</listitem>
<listitem>
<listcell>
<checkbox style="padding-right:2%"/>
<label value="Lipase" style="padding-right:10px; font-weight:bold; font-size:1.15em;"/>
</listcell>
</listitem>
<listitem>
<listcell>
<checkbox style="padding-right:2%"/>
<label value="CK/CK-MB" style="padding-right:10px; font-weight:bold; font-size:1.15em;"/>
</listcell>
</listitem>
</listbox>
<div style="z-index:1; padding:.24em; margin-top:-.3em;
background-image:none;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fbfbfb), to(#eee));
text-shadow:-1px 1px #eee;
border:1px solid #ddd;
opacity:.9;
color:#777;">
<label value="Radiology" style="font-weight:bold; font-size:1em;"/>
</div>
<listbox style="z-index:-1; border-top:none; border-left:none; border-right:none;">
<listitem>
<listcell>
<checkbox style="padding-right:2%"/>
<label value="EKG #1" style="padding-right:10px; font-weight:bold; font-size:1.15em;"/>
<a label="Last resulted 5/15/2012 (3 months ago)" style="float:right; margin-right:1.5em; font-size:1.15em; text-decoration:underline; "/>
</listcell>
</listitem>
<listitem>
<listcell>
<checkbox style="padding-right:2%"/>
<label value="EKG #2" style="padding-right:10px; font-weight:bold; font-size:1.15em;"/>
<a label="Last resulted 5/15/2012 (3 months ago)" style="float:right; margin-right:1.5em; font-size:1.15em; text-decoration:underline; "/>
</listcell>
</listitem>
</listbox>
<div style="z-index:1; padding:.24em; margin-top:-.3em;
background-image:none;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fbfbfb), to(#eee));
text-shadow:-1px 1px #eee;
border:1px solid #ddd;
opacity:.9;
color:#777;">
<label value="Medications" style="font-weight:bold; font-size:1em;"/>
</div>
<listbox style="z-index:-1; border-top:none; border-left:none; border-right:none; margin-top:1em;">
<listitem>
<listcell>
<checkbox style="padding-right:2%"/>
<label value="EKG #1" style="padding-right:10px; font-weight:bold; font-size:1.15em;"/>
<a label="Last resulted 5/15/2012 (3 months ago)" style="float:right; margin-right:1.5em; font-size:1.15em; text-decoration:underline; "/>
</listcell>
</listitem>
<listitem>
<listcell>
<checkbox style="padding-right:2%"/>
<label value="EKG #2" style="padding-right:10px; font-weight:bold; font-size:1.15em;"/>
<a label="Last resulted 5/15/2012 (3 months ago)" style="float:right; margin-right:1.5em; font-size:1.15em; text-decoration:underline; "/>
</listcell>
</listitem>
</listbox>
<div style="z-index:1; padding:.24em; margin-top:-.3em;
background-image:none;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fbfbfb), to(#eee));
text-shadow:-1px 1px #eee;
border:1px solid #ddd;
opacity:.9;
color:#777;">
<label value="Nursing Orders" style="font-weight:bold; font-size:1em;"/>
</div>
</div>
</center>
</borderlayout>
</vbox>
<popup id="popupCBC" width="250px">
<html><![CDATA[Select either "with Diff" or "no Diff"]]></html>
</popup>
</zk>
TestComposer.javajavaimport org.zkoss.zk.ui.*;
import org.zkoss.zk.ui.event.*;
import org.zkoss.zk.ui.util.*;
import org.zkoss.zk.ui.ext.*;
import org.zkoss.zk.au.*;
import org.zkoss.zk.au.out.*;
import org.zkoss.zul.*;
public class TestComposer extends GenericForwardComposer{
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
}
public void onClick$btn(Event e) throws InterruptedException{
Messagebox.show("Hi btn");
}
}