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 AMlinkDateBox Annual Listing
6guest172.69.136.1391jleppaApr 18, 2025 4:40:00 PMlinkresources
index.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"
xmlns:w="http://www.zkoss.org/2005/zk/client" xmlns:n="http://www.zkoss.org/2005/zk/native" xmlns:ca="client/attribute"
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
<h:div class="form-group" id="${updateVal}_${vm.hashCode()}">
<label sclass="control-label" value="${ox:flabel(fx, field)}"/>
<datebox ca:data-animationspeed="0" format="MM/dd/yyyy" showTodayLink="true" weekOfYear="true" value="@bind(value)"
w:onChange="updateValue('${updateVal}_${vm.hashCode()}', true)"/>
<n:div class="input-group chbox" style="display:none">
<n:div class="z-chosenbox-button z-chosenbox-delete" >
<h:a class="z-chosenbox-icon z-icon-times xdbox" w:onClick="clearDatebox(this)" type="button"/>
</n:div>
</n:div>
</h:div>
</zk>interactiveForms.jsjavascriptfunction initZKCalendar() {
zk.afterLoad('zul.db', function () {
var _xRenderer = {};
zk.override(zul.db.Renderer, _xRenderer, {
titleHTML: function (wgt, out, localizedSymbols) {
_xRenderer.titleHTML.apply(this, arguments); //call the original method
var uuid = wgt.uuid,
view = wgt._view,
text = wgt.getZclass() + '-ctrler';
if (view == 'day') {
out.push('<a id="_z_4-prevyear" href="javascript:;" class="z-calendar-icon z-calendar-left" style="margin:0;" onClick="setLastYear(this, 7); return false;"><i class="z-icon-angle-double-left" aria-label="Предыдущий год"></i></a>');
out.push('<a id="_z_4-nextyear" href="javascript:;" class="z-calendar-icon z-calendar-right" style="margin:0;" onClick="setNextYear(this,8);"><i class="z-icon-angle-double-right" aria-label="Следующий год"></i></a>');
}
}
});
});
zk.afterLoad("zul.db", function () {
// Datebox Calendar Renderer
var cwgt = {};
zk.override(zul.db.CalendarPop.prototype, cwgt, {
// switch the view after redraw or open as needed
clear: function () {
this._select(null, {sendOnSelect: true, sendOnChange: true});
},
redraw: function (out) {
cwgt.redraw.apply(this, arguments); //call the original method
this._customChangeView();
},
open: function (silent) {
cwgt.open.apply(this, arguments); //call the original method
this._customChangeView();
},
animationSpeed_: function() { return '0'; },
_setView: function (val, force) {
if (this.parent.getTimeFormat())
this.parent._tm.setVisible(val == 'day');
this.$supers('_setView', arguments);
zk(this.parent.$n('pp')).redoCSS(0); // wait for animation
},
_customChangeView: function ()
{
this._minyear = '1800';
// show year selection on open
if (jq(this.parent.$n()).hasClass('datebox-year-only')) {
var view = this._view;
if (view == 'month' || view == 'day')
this._setView("year");
} else if (jq(this.parent.$n()).hasClass('datebox-month-only')) {
if (this._view == 'day')
this._setView("month");
}
},
_shiftView: function (a, b) {
switch (this._view) {
case "day":
if (ddd === 1) { this._shiftDate("year", a); }
else { this._shiftDate("month", a); }
ddd = 0;
break;
case "month":
this._shiftDate("year", a);
break;
case "year":
this._shiftDate("year", 10 * a);
break;
case "decade":
this._shiftDate("year", 100 * a)
}
b ? (this.rerender(-1),
this.focus()) : this._setView(this._view, a)
},
// customize the chooseDate function
_chooseDate: function (target, val) {
var view = this._view;
if (jq(this.parent.$n()).hasClass('datebox-month-only') || jq(this.parent.$n()).hasClass('datebox-year-only')) {
var date = this.getTime(),
year = (view == 'decade' || view == 'year') ? val : date.getFullYear(),
month = view == 'month' ? val : 0,
date = 1;
this._setTime(year, month, 1);
if (view == 'decade')
this._setView("year");
else if (jq(this.parent.$n()).hasClass('datebox-month-only') && view == 'year') {
this._setView("month");
} else if (jq(this.parent.$n()).hasClass('datebox-month-only') && view == 'month'
|| jq(this.parent.$n()).hasClass('datebox-year-only') && view == 'year') {
this.close();
this.parent.setValue(this.getTime());
this.parent.fireOnChange();
}
} else
cwgt._chooseDate.apply(this, arguments); //call the original method
}
});
});
}
var ddd = 0;
function setLastYear(obj, bb) {
(obj.innerHTML.includes("Предыдущий год") == true)
{
ddd = 1;
var ids = '#' + obj.parentElement.parentElement.attributes[0].nodeValue + '-left';
$(ids).trigger("click");
}
}
function setNextYear(obj, bb) {
(obj.innerHTML.includes("Следующий год") == true)
{
ddd = 1;
var idx = '#' + obj.parentElement.parentElement.attributes[0].nodeValue + '-right';
$(idx).trigger("click");
}
}
Searchform.zulzul<?xml version="1.0" encoding="UTF-8"?>
<!-- ##### ZK taglib ##### -->
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<!-- ##### Oxitec taglib. Placed in package: zkboost-utils-ui ##### -->
<?taglib uri="http://www.oxitec.de/tld/oxitec-taglib" prefix="ox"?>
<!-- ##### Oxitec spring secured page initializer. Redirect to 'accessDenied' system property defined page. ##### -->
<?init class="de.oxitec.zkboost.web.utils.security.authentication.OXSpringSecurityHandlePageInit" right="ew_mod_invoices.can_view" ?>
<?link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" ?>
<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"
xmlns:n="http://www.zkoss.org/2005/zk/native"
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
<window hflex="1" height="100%" border="none" sclass="outerwin" viewModel="@id('vm') @init('de.oxitec.magelaan.web.invoice.InvoiceListVM')" ctrlKeys="@c^a#f10^#f3" onOK="@command('onSearch')">
<!-- ### Bootstrap 'container-fluid' modus ### -->
<n:div class="container-fluid" id="${vm.containerFluidId}">
<!-- with a form and before=onSearch we make sure that the lookup values are evaluate before we can do a paging. -->
<div form="@id('fx') @init(vm.lookup) @load(vm.lookup) @save(vm.lookup, before={'onSearch', 'onSelectYear'})">
<template name="datebox" src="index.zul" />
<template name="yearbox" src="~./zul/components/label_yearbox.zul" />
<!-- ### search fields ### -->
<!-- ### Bootstrap3: panel ### -->
<n:div class="panel panel-primary">
<n:div name="${vm.panelId}" id="${vm.panelId}">
<n:div class="panel-body">
<n:form class="form-horizontal md-form invoiceSearch">
<zk-gridster onCreate="@command('onSearchFormCreated', form = self)">
<n:div id="${vm.gridId}" class="col-lg-8 col-md-8 col-sm-8">
<rdiv name="row-3" row="3">
<cdiv name="row-3-col-1" row="3" col="1">
<apply template="yearbox_select"
value="@ref(fx.invYear)"
onSelectYearCmd="onSelectYear"
fields="invoice"
updateVal1="invoiceDateFrom"
updateVal2="invoiceDateTo"
field="invYear" />
</cdiv>
<cdiv name="row-3-col-2" row="3" col="2">
<apply template="datebox" value="@ref(fx.invoiceDateFrom)" field="invoiceDateFrom" updateVal="invoiceDateFrom" />
</cdiv>
<cdiv name="row-3-col-3" row="3" col="3">
<apply template="datebox" value="@ref(fx.invoiceDateTo)" field="invoiceDateTo" updateVal="invoiceDateTo" />
</cdiv>
</rdiv>
<rdiv name="row-4" row="4">
<cdiv name="row-4-col-1" row="4" col="1">
<apply template="yearbox_select"
value="@ref(fx.subsYear)"
onSelectYearCmd="onSelectYear"
fields="subs"
updateVal1="subsPeriodFrom"
updateVal2="subsPeriodTo"
field="subsYear" />
</cdiv>
<cdiv name="row-4-col-2" row="4" col="2">
<apply template="datebox" value="@ref(fx.subsPeriodFrom)" field="subsPeriodFrom" updateVal="subsPeriodFrom" />
</cdiv>
<cdiv name="row-4-col-3" row="4" col="3">
<apply template="datebox" value="@ref(fx.subsPeriodTo)" field="subsPeriodTo" updateVal="subsPeriodTo" />
</cdiv>
</rdiv>
</n:div>
</zk-gridster>
<apply template="search_buttons" />
</n:form><!-- class="form-horizontal -->
</n:div><!-- class="panel-body" -->
</n:div><!-- class="panel-collapse collapse in" -->
</n:div><!--class="panel panel-primary" -->
</div><!-- form="@id('fx') @init(vm.lookup... -->
</n:div><!-- class="container-fluid" -->
</n:div>
</window>
</zk>