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 AMlinkAnother new ZK fiddle
8guest115.254.63.503igt0qsNov 3, 2018 6:40:16 AMlinkresources
index.zulzul<?page id="psvs_advance" ?>
<zk>
<style dynamic="true">
.MyRowHeight tr.z-row,tr.z-listheader
{
height:1px;
line-height:7px;
min-height:1px;
}
.expstyle1 .rupeetextbox
{
font-family: 'Rupee Foradian Standard';
}
</style>
<window id="wsvs_advance" width="100%" height="100%" contentStyle="overflow:auto" >
<borderlayout height="100%" style="overflow:auto">
<center border="0" >
<borderlayout height="100%" >
<north border = "0" height="0"></north>
<center border = "0">
<panel id="mdatapanel" width="100%" height="100%" visible="false">
<panelchildren>
<borderlayout height="100%">
<north border = "0" height="0%"></north>
<west width="4%" >
<div id ="btndiv" align ="center" width="100%" height="100%">
<vbox align="right">
<image id = "back" src="/images/image_back.png" style="cursor:hand;" tooltiptext="Back Image (F1)"></image>
<image id = "front" src="/images/image_front.png" style="cursor:hand;" tooltiptext="Front Image (F2)"></image>
<image id = "gray" src="/images/image_gray.png" style="cursor:hand;" tooltiptext="Gray Image (F3)"></image>
<image id = "zoomin" src="/images/image_zoom_in.png" style="cursor:hand;" tooltiptext="Zoom In Image (F6)"></image>
<image id = "zoomout" src="/images/image_zoom_out.png" style="cursor:hand;" tooltiptext="Zoom Out Image (F7)"></image>
<image id = "rrotate" src="/images/image_rr.png" style="cursor:hand;" tooltiptext="Flip Image (F8)"></image>
<image id = "negative" src="/images/image_negative.png" style="cursor:hand;" tooltiptext="Negative Image (F9)"></image>
<image id = "skip" src="/images/image_skip.png" style="cursor:hand;" tooltiptext="Next Instrument (F10)"></image>
<image id = "backtopanel" src="/images/backtopanel.png" style="cursor:hand;" tooltiptext="Back To Batch (F12)"></image>
<label id ="instid" visible ="false"></label>
</vbox>
</div>
</west>
<center>
<borderlayout height="100%">
<center border = "0" >
<panel width="100%" height="100%">
<panelchildren style="overflow:auto">
<image id="chq_img" width="100%" height="95%"></image>
</panelchildren>
</panel>
</center>
</borderlayout>
</center>
<east width="27%" >
<borderlayout height="100%">
<north height="100%" border = "0">
<div id ="btndiv1" align ="left" width="100%" height="100%">
<grid id="batchdetail" height="100%" sizedByContent="true">
<columns>
<column width="32%"/>
<column width="68%"/>
</columns>
<rows id="batchanddatarows">
<row width="100%">
<label value ="Batch Status" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label><label id="batchstat"></label>
</row>
<row spans="3" width="100%">
<label id="udka" style="font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
</row>
<row width="100%">
<label value ="Cheque Status" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label> <label id="chqstat"></label>
</row>
<row width="100%">
<label value ="User Field" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label> <label id="userfld"></label>
</row>
<row width="100%">
<label value ="Pres Bank" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label> <label id="presbankname"></label>
</row>
<row width="100%">
<label value ="Return Reason" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label><combobox id="retreason" width="95%"></combobox>
</row>
<row width="100%" visible= "false" id="retremarkrow">
<label value ="Return Remark" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label><textbox id="retremark" maxlength="70" width="100%"></textbox>
</row>
<row width="100%" visible="false" id="rejuserrow">
<label value ="Rejected By" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label><label id="svssuser" width="100%" ></label>
</row>
<row width="100%">
<label value="Referral Remark" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label><textbox id="refferalremark" maxlength="70" width="100%" readonly="true" ></textbox>
</row>
<row width="100%">
<label value="Force Remark" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label><textbox id="forcesubmitremark" maxlength="70" width="100%" readonly="true" ></textbox>
</row>
</rows>
</grid>
</div>
</north>
</borderlayout>
</east>
<south border = "0" height="0%">
</south>
</borderlayout>
</panelchildren>
</panel>
</center>
<south id = "south" height="40%">
<borderlayout height="100%">
<north border = "0" height = "88%">
<borderlayout height="100%">
<north border = "0" height="35%">
<grid id="data_grid1" height="null">
<columns>
<column width="9%" align="center"/>
<column width="11%" align="center"/>
<column width="7%" align="center"/>
<column width="11%" align="center"/>
<column width="8%" align="center"/>
<column width="4%" align="center"/>
<column width="15%" align="center"/>
<column width="3%" align="center"/>
<column width="5%" align="center"/>
<column width="27%" align="center"/>
</columns>
<rows id="data_rows1">
<row width="100%" >
<label value="Branch Number" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<label value="Account Number" style="color:blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<label value="Chq Number" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<label value="Sort Code" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<label value="Base Number" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<label value="TC" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<label value="Amount" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<label value="P2F" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<label value="IQA" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<label value="Account Name" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
</row>
<row width="100%" >
<label id="brno" style="text-align:center; font-weight:bold;font-size:14px;" width="95%"></label>
<label id="accnoa" style="text-align:center; font-weight:bold;font-size:14px;"></label>
<label id="instrumentnumberintb1" style="text-align:center; font-weight:bold;font-size:14px;"></label>
<label id="payeecitycodeintb1" style="text-align:center; font-weight:bold;font-size:14px;"></label>
<label id="sanintb1" style="text-align:center; font-weight:bold;font-size:14px;"></label>
<label id="tcintb1" style="text-align:center; font-weight:bold;font-size:14px;"></label>
<div align="right"><label id="amount" style="text-align:right; font-weight:bold;font-size:14px;"></label></div>
<label id="p2flvl" style="text-align:center; font-weight:bold;font-size:14px;"></label>
<label id="iqalvl" style="text-align:center; font-weight:bold;font-size:14px;"></label>
<label id="accname" style="text-align:center; font-weight:bold;font-size:14px;"></label>
</row>
</rows>
</grid>
</north>
<south border = "0" height="65%">
<borderlayout height="100%">
<west id="lwest" width ="65%">
<borderlayout height="100%">
<west width="45%" id ="imgwest">
<div id="mopdiv" width="100%" height="33%">
<label value="Account Operating Instructions" width="100%" style="text-align:right; font-weight:bold;font-size:13px;color:blue;"/>
<textbox id="mdata" rows="7" multiline="true" width="100%" readonly="true"/>
</div>
</west>
<center>
<hbox>
<vbox id="vboxsignbtn" align="center" width="20%">
</vbox>
</hbox>
</center>
<east width="45%">
<panel width="100%" height="100%">
<panelchildren style="overflow:auto">
<image align="center" id ="img1" width="98%" height="98%" style="border:1px solid #00008B"></image>
</panelchildren>
</panel>
</east>
</borderlayout>
</west>
<east border = "0" width="35%">
<div id="bottomleftmaindiv">
<div id="selsigndiv" width="100%" height="33%">
<listbox id="custsignlistbox" style="overflow-y:auto" rows="3" mold="paging" pageSize="3">
<listhead sclass="MyRowHeight">
<listheader width="15%" label="Sign Id" sort="auto" />
<listheader width="60%" label="Signatory Name" sort="auto" />
<listheader width="15%" label="Relation" sort="auto" />
</listhead>
</listbox>
</div>
</div>
</east>
</borderlayout>
</south>
</borderlayout>
</north>
<south border = "0" height="12%">
<div align ="center" width="100%">
<vbox>
<hbox>
<space bar="false" spacing ="5px"></space>
<label value="Search :" style="color:blue" width="15%"></label>
<textbox id="searchsign" readonly="true" maxlength="25" width="200px"/>
<space bar="false" spacing ="5px"></space>
<button id="lastverified" label="Last Verified" width="12%" mold="trendy"/>
<button id="reset" label="Reset" width="6%" mold = "trendy"/>
<button id="forward" label="Next" width="6%" mold = "trendy"/>
<button id="submit" label="Submit" width="7%" mold = "trendy"/>
<button id="forcesubmit" label="Force Submit" width="10%" mold = "trendy"/>
<button id="referral" label="Referral" width="7%" mold = "trendy"/>
<button id="brview" label="BR View" width="7%" mold = "trendy"/>
<button id="returnb" label="Return" width="50px" mold = "trendy"/>
<!--<button id="scandatab" label="Datascan" width="50px" mold = "trendy"/>
-->
<space bar="false" spacing ="5px"></space>
<button id="fetch" label="Datascan" mold = "trendy" width="50px" visible="false"/>
<!--<button id="acceptsign" label="Accept" mold = "trendy" width="50px" visible="false" />
--></hbox>
</vbox>
</div>
</south>
</borderlayout>
</south>
</borderlayout>
</center>
<south id="filtersouth" height="100%" visible="true" >
<div id="rangefilterdiv" align ="left" width ="100%" height="100%">
<grid id="rangefiltergrid" height="null" sizedByContent="true">
<columns>
<column width="15%"/>
<column width="12%"/>
<column width="3%"/>
<column width="12%"/>
</columns>
<rows id="rangerows">
<row width="100%" >
<label value="Branch Number :" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<textbox id="branchfrm" maxlength ="5" width="100%" xmlns:w="client"><attribute w:name="doKeyPress_">function(evt) { if (!this._shallIgnore(evt, '0123456789')) this.$doKeyPress_(evt); }</attribute></textbox>
<label value=" To " style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<textbox id="branchto" maxlength ="5" width="100%" xmlns:w="client"><attribute w:name="doKeyPress_">function(evt) { if (!this._shallIgnore(evt, '0123456789')) this.$doKeyPress_(evt); }</attribute></textbox>
</row>
<row width="100%">
<label value="Account Number :" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<textbox id="accountfrm" maxlength ="16" width="100%" xmlns:w="client"><attribute w:name="doKeyPress_">function(evt) { if (!this._shallIgnore(evt, '0123456789')) this.$doKeyPress_(evt); }</attribute></textbox>
<label value=" To " style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<textbox id="accountto" maxlength ="16" width="100%" xmlns:w="client"><attribute w:name="doKeyPress_">function(evt) { if (!this._shallIgnore(evt, '0123456789')) this.$doKeyPress_(evt); }</attribute></textbox>
</row>
<row width="100%" >
<label value="Transaction Code :" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<textbox id="tcfrm" maxlength ="3" width="100%" xmlns:w="client"><attribute w:name="doKeyPress_">function(evt) { if (!this._shallIgnore(evt, '0123456789')) this.$doKeyPress_(evt); }</attribute></textbox>
<label value=" To " style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<textbox id="tcto" maxlength ="3" width="100%" xmlns:w="client"><attribute w:name="doKeyPress_">function(evt) { if (!this._shallIgnore(evt, '0123456789')) this.$doKeyPress_(evt); }</attribute></textbox>
</row>
<row width="100%">
<label value="Amount :" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<textbox id="amtfrm" width="100%" sclass = "rupeetextbox"></textbox>
<label value=" To " style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<textbox id="amtto" width="100%" sclass = "rupeetextbox"></textbox>
</row>
</rows>
</grid>
<grid id="fieldfiltergrid" height="null" sizedByContent="true">
<columns>
<column width="10%"/>
<column width="10%"/>
<column width="10%"/>
<column width="10%"/>
<column width="10%"/>
<column width="10%"/>
<column width="10%"/>
<column width="10%"/>
<column width="10%"/>
</columns>
<rows id="fieldrows">
<row width="100%">
<label value="BOFD :" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<textbox id="bofd" maxlength ="9" width="100%" xmlns:w="client"><attribute w:name="doKeyPress_">function(evt) { if (!this._shallIgnore(evt, '0123456789')) this.$doKeyPress_(evt); }</attribute></textbox>
<label value="Cheque Number :" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<textbox id="chqno" maxlength ="6" width="100%" xmlns:w="client"><attribute w:name="doKeyPress_">function(evt) { if (!this._shallIgnore(evt, '0123456789')) this.$doKeyPress_(evt); }</attribute></textbox>
<div id="divchk4">
<label value="P2F :" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<checkbox id="p2f" ></checkbox>
</div>
<div id="divchk5">
<label value="Referral:" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<checkbox id="referalfld" ></checkbox>
</div>
<label value="Sent Back :" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<checkbox id="sendbackcb" width="98%"></checkbox>
<label value="Cheque Type :" style="color: blue; font-weight:bold;font-size:12px;font-style:Trebuchet MS;"></label>
<combobox id="chequetypecb" width="98%"></combobox>
</row>
</rows>
</grid>
<vbox>
<div height="10%" width="20%" >
<hbox width="100%" height="100%">
<space bar="false" spacing="5px"></space>
<panel title="Available Order By" width="200px" height="220px">
<panelchildren>
<listbox id="left" height="100%" checkmark="true">
<listitem label="Account Number" id="ord1"/>
<listitem label="Cheque Number" id="ord2" />
<listitem label="Branch Number" id="ord3"/>
<listitem label="Transaction Code" id="ord4"/>
<listitem label="Sequence Number" id="ord5"/>
<listitem label="Amount" id="ord6"/>
</listbox>
</panelchildren>
</panel>
<space bar="false" spacing="20px"></space>
<panel width="120px" height="210px">
<panelchildren class="actionColumn">
<vbox align="center">
<separator height="30px"/>
<button id="addasc" label="Add Asc >>" tooltiptext="Add Ascending" width ="110px" mold = "trendy"> </button>
<separator height="10px"/>
<button id="adddesc" label="Add Desc >>" tooltiptext="Add Descending" width ="110px" mold = "trendy"> </button>
<separator height="10px"/>
<button id="remove" label="<< Remove" tooltiptext="Remove" width ="110px" mold = "trendy"> </button>
<separator height="10px"/>
<button id="removeall" label="<< Remove All" tooltiptext="Remove All" width ="110px" mold = "trendy"> </button>
</vbox>
</panelchildren>
</panel>
<panel title="Selected Order By" width="215px" height="220px">
<panelchildren>
<listbox id="right" height="100%" checkmark="true">
<listitem>
</listitem>
</listbox>
</panelchildren>
</panel>
<space bar="false" spacing="50px"></space>
<panel width="320px" height="210px">
<panelchildren class="actionColumn">
<vbox>
<div height="130px"></div>
<hbox pack="end">
<separator height="10px"/>
<button id="rangeokbtn" mold = "trendy" label="OK" tooltiptext="Proceed"> </button>
<separator height="10px"/>
<button id="unlockbtn" mold = "trendy" label="Release Locked" tooltiptext="Unlock Record(s)"> </button>
<separator height="10px"/>
<label id = "unlocklbl" width = "50px" style ="color:red;"></label>
</hbox>
</vbox>
</panelchildren>
</panel>
</hbox>
</div>
</vbox>
</div>
</south>
</borderlayout>
</window>
</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");
}
}