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
1guest115.254.63.50lu68v9Feb 1, 2020 7:30:06 AMlinkresources
index.zulzul <?page id="nurole" title="Mandate Data Entry" contentType="text/html;charset=UTF-8"?>
<zk xmlns:x="xhtml" xmlns:zk="zk">
<window id="wmcdataentry" sclass="expstyle1" width="100%" height="100%" contentStyle="overflow:auto">
<style>
.expstyle1 .z-window-modal-tl, .expstyle1 .z-window-modal-tr, .expstyle1 .z-window-modal-tm,
.expstyle1 .z-window-modal-cl, .expstyle1 .z-window-modal-cr, .expstyle1 .z-window-modal-cm,
.expstyle1 .z-window-modal-bl, .expstyle1 .z-window-modal-br, .expstyle1 .z-window-modal-bm,
.expstyle1 .z-window-modal-hl, .expstyle1 .z-window-modal-hr, .expstyle1 .z-window-modal-hm
{
background: #728C00;
}
.expstyle1 .z-window-modal-header
{
background: #728C00;
}
.expstyle1 .z-textbox
{
text-transform:uppercase;
}
</style>
<borderlayout height="100%" style="overflow:auto">
<north height = "96%" border = "0">
<tabbox id="tb" orient="horizontal" width ="100%" height="100%">
<tabs id="tabs" width="125px">
<tab id="dataentrytab" label="Data Entry"/>
<tab id="signaturetab" label="Signature Fetching" visible = "false"/>
</tabs>
<tabpanels>
<tabpanel style="overflow:auto;">
<borderlayout height="100%" style="overflow:auto">
<north id="north" title="Batch Details" maxsize="300" size="95%" splittable="true" collapsible="true">
<div width="100%" height="100%" align="center">
<div id = "filterdiv" height = "null" width="80%" align="center" visible="true">
<grid id="gridmain" width = "50%" align="center" height = "100%">
<columns>
<column width="40%"></column>
<column width="60%"></column>
</columns>
<rows>
<row><label value ="Mandate Type:"></label><combobox id="mandatetypecb" readonly = "true"></combobox></row>
<row><label value ="Flow Type:"></label><combobox id="flowtypecb" readonly = "true"></combobox></row>
<row><label value ="Scanning Mode:"></label><combobox id ="scanningmodecb" readonly="true"></combobox></row>
<row><label value ="Corporate Selection:"></label><combobox id ="corporatecb" readonly="true"></combobox></row>
<row><label value ="Scan Date:"></label><combobox id ="scandatecb" readonly="true"></combobox></row>
</rows>
</grid>
<hbox pack="end" height="2%" width="50%" ></hbox>
<hbox pack="end" height="25%" width="50%" >
<button id="fetch" label="Fetch" mold = "trendy" width="60px" />
</hbox>
</div>
<div id="serchdiv" align ="center" width ="100%" height="null" visible="false">
<listbox id = "data_grid" height="null" width="80%" mold="paging" pageSize="10">
<listhead>
<listheader align = "center" width="15%" label="Scan Date" />
<listheader align = "center" width="15%" label="Batch Number" />
<listheader align = "center" width="12.5%" label="Batch Count" />
<listheader align = "center" width="12.5%" label="Pending Count" />
<listheader align = "center" width="15%" label="Processed Count" />
<listheader align = "center" width="15%" label="Status" />
<listheader align = "center" width="15%" label="User Id" />
</listhead>
</listbox>
<hbox pack="end" height="2%" width="80%" ></hbox>
<hbox pack="end" height="25%" width="80%" >
<label id ="msg" style="color: red; font-weight:bold;font-size:15px;font-style:Trebuchet MS;"></label>
<button id="backtofilterbtn" label="Back" mold = "trendy" width="60px" />
<button id="refreshbtn" label="Refresh" mold = "trendy" width="60px" visible="false"/>
<button id="releasesessionbtn" label="Release Locked" mold = "trendy"/>
</hbox>
</div>
</div>
</north>
<center border="0">
<panel id="mdatapanel" width="100%" height="100%" visible = "true">
<panelchildren>
<borderlayout>
<west width="66.5%" style="overflow:auto">
<panel id="imagepanel" title="Image" width="100%" height="100%">
<panelchildren style="overflow:auto">
<borderlayout height="100%">
<north border = "0" height="0%"></north>
<west width="4%" >
<div align ="center" width="100%" height="100%">
<vbox align="right">
<image id = "front" src="/images/image_front.png" style="cursor:hand;" tooltiptext="Front Image (F2)" onClick='Clients.evalJavaScript("myFunctionDel()")'></image>
<image id = "gray" src="/images/image_gray.png" style="cursor:hand;" tooltiptext="Gray Image (F3)" onClick='Clients.evalJavaScript("myFunctionDel()")'></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)" onClick='Clients.evalJavaScript("myFunctionDel()")'></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>
<script>
<![CDATA[
function myFunctionDel(imgID)
{
// myFunction();
//var y;
//y=imgID;
// magnify1(y);
}
]]>
</script>
</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%" onMouseOver='Clients.evalJavaScript("myFunction1()")'></image>
<script>
<![CDATA[
function myFunction1()
{
var x=zk.Widget.$('$chq_img').$n();
// delObject();
alert(x);
magnify1(x);
}
]]>
</script>
<html>
<head>
<script>
<![CDATA[
function magnify1(imgID)
{
var img1;
img1=imgID;
var x1 = zk.Widget.$('$chq_img').$n().src;
alert(x1);
var zoom1= document.getElementById("zoom_01");
zoom1.setAttribute("src", x1);
zoom1.setAttribute("data-zoom-image", x1);
var s=document.getElementById("zoom_01").src;
alert(s);
if(s!=null)
{
img1.style.display='none';
img1=null;
}
f();
}
]]>
</script>
</head>
<body>
<img id="zoom_01" src="" data-zoom-image="" />
<!-- <script src='magnifierfiles/jquery-1.8.3.min.js'></script> -->
<script src='magnifierfiles/jquery.elevatezoom.js'></script>
<script>
function f()
{
$('#zoom_01').elevateZoom({zoomType:'lens',lensShape:'round',lensSize:200});
}
</script>
</body>
</html>
</panelchildren>
</panel>
</center>
</borderlayout>
</center>
</borderlayout>
</panelchildren>
</panel>
</west>
<center>
<div id="datadiv" align="left" height="100%" width="96%">
<grid id = "datagrid" height="100%" width="100%" style="overflow:auto">
<columns>
<column width="40%"/>
<column width="60%"/>
</columns>
<rows>
<row visible="false" ><label></label><label id="mandateid" width = "80%"></label></row>
<row><label id = "utclb" value="Utility Code "/><combobox id="utilitycodecb" width = "80%" readonly = "true"/></row>
<row><label id = "uttlb" value="Utility Code: "/><textbox id="utilitycodetb" maxlength="18" width = "80%" visible = "false" constraint="/[0-9a-zA-Z]+/ : Must be a alphanumeric"/></row>
<row><label id = "cnllb" value="Creditor Name: " /><label id="cnamelb" maxlength="40" width = "80%" /></row>
<row><label id = "cntlb" value="Creditor Name: " /><textbox id="cnametb" maxlength="40" width = "80%" visible = "false" constraint="/^[a-zA-Z]+(([. ][a-zA-Z. ])?[a-zA-Z. ]*)*$/ : Must be a alpha"/></row>
<row><label id = "catcblb" value="Category Code: "/><combobox id="catcb" width = "80%" readonly = "true"/></row>
<row><label id = "catlblb" value="Category Code: "/><label id="catlb" width = "80%"/></row>
<row><label value="A/C Type: "/><combobox id="actypecb" width = "80%" readonly = "true"/></row>
<row><label value="Debitor ACNO: "/><textbox id="destacctb" maxlength="35" width = "80%" constraint="/[0-9a-zA-Z]+/ : Must be a alphanumeric"/></row>
<row><label value="Debitor IFSC/MICR Code: "/><textbox id="micrcodetb" maxlength="11" width = "80%" constraint="/[0-9a-zA-Z]+/ : Must be a alphanumeric"/></row>
<row><label value="Debitor Bank Code: " /><label id="destbanktb" maxlength="4" width = "80%"/></row>
<row><label value="Debitor Bank Name: " /><label id="destbanklbl" width = "80%"/></row>
<row><label value="Debit Type: " /><radiogroup id="processType" ><radio id = "fix" label = "Fixed"/><radio id = "max" label = "Maximum"/></radiogroup></row>
<row><label value="Amount: "/><textbox id="amounttb" width = "80%"/></row>
<row><label value="Consumer Ref No: "/><textbox id="crefnotb" maxlength="35" width = "80%" constraint="/^[a-zA-Z0-9]+(([_ ][a-zA-Z0-9_ ])?[a-zA-Z0-9]*)*$/ : Must be a alphanumeric"/></row>
<row><label value="Plan Ref No: "/><textbox id="prefnotb" maxlength="35" width = "80%" /></row>
<row><label value="Frequency: "/><combobox id="freqcb" width = "80%" readonly = "true"/></row>
<row><label value="Start Date:(dd/mm/yyyy) "/><textbox id="startdb" width = "80%"/></row>
<row><label value="Untill Cancelled:"/><checkbox id="uncancb" width = "80%"/></row>
<row><label id = "ed" value="End Date:(dd/mm/yyyy) "/><textbox id="enddb" width = "80%"/></row>
<row><label value="Debitor Name:" /><textbox id="destcnametb" maxlength="40" width = "80%" /></row>
<row><label value="Debitor Phoneno:"/><textbox id="destphonetb" maxlength="11" width = "80%" /></row>
<row><label value="Debitor Mobileno:"/><textbox id="destmobiletb" maxlength="10" width = "80%" /></row>
<row><label value="Debitor Email:"/><textbox id="destemailtb" maxlength="50" width = "80%" /></row>
<row><label value="Add. Details:"/><textbox id="destidtb" maxlength="27" width = "80%" /></row>
</rows>
</grid>
</div>
</center>
</borderlayout>
</panelchildren>
</panel>
</center>
</borderlayout>
</tabpanel>
<tabpanel id = "signaturetabpanel" style="overflow:auto;"></tabpanel>
</tabpanels>
</tabbox>
</north>
<south height = "4%" border = "0">
<div id="savediv" align="right" height="100%" width="98%" visible="false">
<div>
<label id="v_r" value="Remarks:" visible ="false"/><textbox id="v_remark" width="30%" visible="false" readonly="true"></textbox>
<button id="save" label="Save" width="60px" mold ="trendy"/>
<button id="discard" label="Discard" width="60px" mold ="trendy"/>
</div>
</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");
}
}