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 AMlinklistwindow
10guest41.76.150.10723047Aug 19, 2013 10:27:22 AMlinkresources
index.zulzul<?xml version="1.0" encoding="UTF-8"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk>
<hlayout hflex="1" vflex="1" style="padding:6px;">
<style>
.cw-notes-header-btn {
color: white;
font-family: Helvetica, Arial, Sans-Serif;
font-size: 15px;
text-decoration: none;
/*text-shadow: -1px -1px 1px #616161;*/
position: relative;
-webkit-box-shadow: 3px 3px 0 #9a9a9a;
-moz-box-shadow: 3px 3px 0 #9a9a9a;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
padding: 6px 5px;
background:#4A7EBB;
}
.cw-notes-header-btn:hover {
-webkit-box-shadow: 0px 0px 0 #4A7EBB;
-moz-box-shadow: 0px 0px 0 #4A7EBB;
top: 1px;
left:1px;
background:#656565;
}
.cw-notes-header-btn .z-combobox-inp {
color: white;
font-family: Helvetica, Arial, Sans-Serif;
font-size: 15px;
text-decoration: none;
background:#4A7EBB;
border:none;
padding:-1px 2px;
}
.cw-notes-header-btn-comboitem td.z-comboitem-text {
font-size:13px;
padding: 2px;
}
.cw-notes-header-btn:hover .z-combobox-inp {
background:#656565;
}
</style>
<div id="divObservations" hflex="3" vflex="1" width="100%" height="100%">
<hlayout
style="padding:5px;background:#dddddd;width:98%;border: 3px solid #dddddd;margin-bottom:-3px;">
<hlayout style="float:left;" hflex="1">
<label id="noteLabelValue"
style="color: #616161;
float:left;
font-family: Helvetica, Arial, Sans-Serif;
font-size: 20px;
text-decoration: none;"
value="" />
<hlayout style="padding:5px;padding-right:25px;float:left;">
<listbox id="noteTypesListbox" style="float:left;" mold="select"
visible="false" />
</hlayout>
</hlayout>
<div>
<hlayout hflex="1" style="float:right;padding:8px;">
<combobox id="insertTemplateCombo" buttonVisible="true" value="Insert" sclass="cw-notes-header-btn" width="120px"
w:onfocus="this.open()" xmlns:w="client" readonly="true">
<comboitem id="templatelistitem" label="Template" sclass="cw-notes-header-btn-comboitem"/>
<comboitem id="newtemplatelistitem" label="New Template" sclass="cw-notes-header-btn-comboitem"/>
</combobox>
<!-- <a label="Save as Template" id="saveTemplate" sclass="cw-notes-header-btn" />-->
<a label="Recent Notes" id="recentNotes" sclass="cw-notes-header-btn" style="padding:8px;" />
</hlayout>
</div>
</hlayout>
<textbox id="noteTextbox" rows="2"
style="resize:none;width: 98%;
font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
font-weight: 300;
font-size:15px;
line-height:22px;
height: 80%;
border: 3px solid #DDDDDD;
padding: 5px;
overflow:auto;
background-position: center center;
background-repeat: no-repeat;" />
<timer id="timerSaveNote" delay="5000" repeats="true" />
</div>
<vlayout id="divListbox" hflex="1" vflex="1"
style="padding-left:3px;padding-right:3px;">
<div height="100%;" width="95%" style="padding:0;margin:0;">
<listbox id="notesTemplatesListboxMyRecentNotes"
oddRowSclass="none"
style="overflow-x:none;overflow-y:auto;width:100%;border:3px solid #DDDDDD;backgroud:white;margin-bottom:5px;"
visible="true">
<listhead>
<listheader id="myRecentNotesListheader" height="13px" label="My Recent Notes"
style="color: #4A7EBB;
font-family: Helvetica, Arial, Sans-Serif;
font-size: 16px;
text-decoration: none;
background: #DDDDDD;
cursor:pointer;
border: 2px solid #DDDDDD;
margin-bottom:4px;
overflow-x:hidden;" />
</listhead>
<listitem label="blah" />
</listbox>
</div>
<div width="95%" style="padding:0;margin:0;" vflex="1">
<listbox id="notesTemplatesListboxLoadOnStartup" vflex="1" hflex="1"
oddRowSclass="none"
style="overflow-y:auto;overflow-x:none;border:3px solid #DDDDDD;backgroud:white;margin-bottom:5px;">
<listhead>
<listheader id="otherTemplatesListheader" height="13px" label="Other Templates"
style="color: #4A7EBB;
font-family: Helvetica, Arial, Sans-Serif;
font-size: 16px;
text-decoration: none;
background: #DDDDDD;
border: 2px solid #DDDDDD;
cursor:pointer;
margin-bottom:4px;
overflow-x:hidden;" />
</listhead>
<listitem label="hey" />
<listfoot style="border:none;backgroud:white;">
<listfooter
style="background:white;border:none;padding-top:2px;padding-bottom:2px;">
<a id="moreTemplates" label="Show All Templates..."
style="color: #4A7EBB;
font-family: Helvetica, Arial, Sans-Serif;
font-size: 16px;
text-decoration: none; float:right;" />
</listfooter>
</listfoot>
</listbox>
</div>
</vlayout>
</hlayout>
</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");
}
}
test.zulzultest2.zulzul
<zk xmlns="http://www.zkoss.org/2005/zul"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
<!-- <window title="Note Templates" width="80%" height="85%"
use="${TemplateListController}"
closable="true" forward="onCancel=onClick$noteTemplateCancel()" style="overflow:visible;overflow-x:none;">-->
<window title="Templates" width="90%" height="85%"
closable="true" forward="onCancel=onClick$noteTemplateCancel()" style="overflow:visible;overflow-x:none;">
<style>
.cw_template_editor_button {
-moz-box-shadow:inset 0px 1px 16px 0px #dee0dc;
-webkit-box-shadow:inset 0px 1px 16px 0px #dee0dc;
box-shadow:inset 0px 1px 16px 0px #dee0dc;
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #383738), color-stop(1, #383638) );
background:-moz-linear-gradient( center top, #383738 5%, #383638 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#383738', endColorstr='#383638');
background-color:#383738;
-moz-border-radius:9px;
-webkit-border-radius:9px;
border-radius:9px;
border:1px solid #c7c7c7;
display:inline-block;
color:#ffffff;
font-family:arial;
font-size:15px;
font-weight:normal;
padding:6px 21px;
text-decoration:none;
}.cw_template_editor_button:hover {
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #383638), color-stop(1, #383738) );
background:-moz-linear-gradient( center top, #383638 5%, #383738 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#383638', endColorstr='#383738');
background-color:#383638;
}.cw_template_editor_button:active {
position:relative;
top:1px;
}
/* This imageless css button was generated by CSSButtonGenerator.com */
</style>
<borderlayout vflex="1" sclass="cw-borderless-grid">
<center vflex="1" border="none">
<borderlayout>
<west id="divTemplateList" border="none"
style="overflow:auto;overflow-x:hidden; background:white;border-top:1px solid #CCC;border-left:1px solid #CCC;border-bottom:1px solid #CCC;"
size="20%" maxsize="300" >
<!--<listbox id="notesTemplatesListbox" height="100%"
use="org.regenstrief.ui.component.resultentry.view.zk.NotesTemplatesListbox"
oddRowSclass="none"
style="overflow:auto;border:1px solid #ffffff;backgroud:white;margin-bottom:5px;overflow-x:hidden;">
</listbox> -->
<listbox id="notesTemplatesListbox" height="100%"
oddRowSclass="none"
style="overflow:auto;border:1px solid #ffffff;backgroud:white;margin-bottom:5px;overflow-x:hidden;">
<listhead>
<listheader id="notesTemplatesListboxHeader" label="Title" sort="auto"
style="background:#DEDEDE; padding: 4px 2px; font-size:15px;letter-spacing: 2px;"
tooltiptext="Click to Sort"/>
</listhead>
<listitem label="blah" style="overflow-x:hidden;padding-bottom:2px;padding-left:1px;padding-top:2px;vertical-align:middle;font-size:13px;" height="20px" />
</listbox>
</west>
<east size="80%" border="none">
<borderlayout>
<center border="none" style="background:#FAFAFA;overflow-x:hidden;border-top:1px solid #CCC;border-right:1px solid #CCC;border-left:1px solid #CCC;" >
<div height="100%">
<hlayout id="templateHeaderWrapper" style="padding: 20px 8px 10px 8px">
<label id="templateHeaderName" value="Lorem ipsum" style="font-size: 18px;color:#333;font-weight:bold;padding-right:10px;" />
<textbox id="templateHeaderNameEditor" style="font-size: 18px;color:#333;font-weight:bold;padding-right:10px;" visible="false"/>
<a id="templateHeaderEdit" style="color:#3797FF; font-size: 14px; padding-right:10px;" label="Edit" />
<a id="templateHeaderDelete" style="color:#FF0000; font-size: 14px; padding-left: 10px; padding-right:10px;" label="Delete Template" />
<a id="insertTextboxTemplate" sclass="cw_template_editor_button" label="Add textbox" style="padding-right:10px;" visible="false"/>
<a id="insertChoiceListTemplate" sclass="cw_template_editor_button" label="Add choice list" style="padding-right:10px;" visible="false"/>
</hlayout>
<div style="overflow-x:none; overflow-y:auto; padding:9px; padding-left: 12px;" height="100%">
<div id="divNoteChoices" style="overflow-x:none; overflow-y:auto;" height="90%">
</div>
<div id="divNoteEditor" style="overflow-x:none; overflow-y:auto;" visible="false" height="100%" />
</div>
</div>
</center>
<south border="none" style="padding: 5px 4px;border:1px solid #CCC;" maxsize="50" minsize="40">
<div width="100%" align="left" style="padding-left: 10px;padding-right:10px;" >
<button id="noteTemplateInsert" label="Done"
visible="true" style="font-size:14px; padding:2px;margin-right:4px;"/>
<a id="noteTemplateCancel" label="Cancel" style="margin-bottom:4px;"
tooltiptext="Exit Dialog" />
</div>
</south>
</borderlayout>
</east>
</borderlayout>
</center>
</borderlayout>
</window>
</zk>