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 :
Working ZK fiddle Splitter Panes splitlayout With Tabbox
25dtaylor172.69.70.2336e6elvDec 9, 2025 2:15:40 PMlinkAnother new ZK fiddle
1guest162.158.167.1892883cm7Dec 9, 2025 6:56:30 AMlinkTest_for_theme_load
1guest104.22.17.18021f9vg6Dec 9, 2025 4:40:26 AMlinkpaging first last focus input
1JamesChu172.69.22.82djlgg8Dec 9, 2025 4:17:55 AMlinkWorking ZK fiddle Splitter Panes splitlayout With Tabbox
24dtaylor172.69.59.17336e6elvDec 8, 2025 9:30:11 PMlinkWorking ZK fiddle Splitter Panes splitlayout With Tabbox
23dtaylor172.69.59.17436e6elvDec 8, 2025 9:28:55 PMlinkWorking ZK fiddle Splitter Panes splitlayout With Tabbox
22dtaylor172.69.59.17336e6elvDec 8, 2025 9:27:38 PMlinkWorking ZK fiddle Splitter Panes splitlayout With Tabbox
21dtaylor172.69.59.17336e6elvDec 8, 2025 9:27:23 PMlinkWorking ZK fiddle Splitter Panes splitlayout With Tabbox
20dtaylor172.69.59.17336e6elvDec 8, 2025 9:24:54 PMlinkWorking ZK fiddle Splitter Panes splitlayout With Tabbox
19dtaylor172.69.59.17436e6elvDec 8, 2025 9:24:36 PMlinkAnother new ZK fiddle
1guest181.199.61.1551fuli3aDec 8, 2025 9:18:29 PMlinkresources
index.zulzul<?xml version="1.0" encoding="UTF-8"?>
<?page title="Consulta de Compras X Comercios" contentType="text/html;charset=UTF-8"?>
<zk xmlns="http://www.zkoss.org/2005/zul"
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 id="winConsultaCompraComer" border="normal"
width="100%" height="100%" mode="embedded"
apply="org.zkoss.bind.BindComposer"
<style src="/css/cssGeneral.css" />
<borderlayout width="100%" height="100%">
<!-- NORTH - Filtros -->
<north>
<div style="padding: 5px;">
<div style="border: 2px solid #a0a0a0; border-radius: 8px; padding: 10px; background: #f8f8f8;">
<div align="center">
<vbox>
<!-- PRIMERA FILA: Comercio y Fechas -->
<div width="100%">
<hbox width="100%">
<hbox id="boxEmpresa" width="100%">
<vbox width="70px">
<label value="Comercio:" style="font-weight: bold;" />
</vbox>
<vbox style="margin-left: 15px;">
<combobox id="cmbInstitucionAdq" width="250px"
model="@bind(vm.listainstitucionAdq)"
selectedItem="@bind(vm.institucionAdq)"
readonly="true">
<template name="model" var="emp">
<comboitem label="@load(emp.nombreComercial)" />
</template>
</combobox>
</vbox>
</hbox>
<div hflex="1" />
<hbox>
<vbox>
<label value="Fecha Desde:" style="font-weight: bold;" />
</vbox>
<vbox width="150px" style="margin-left: 15px;">
<datebox id="dtbFechaDesde" width="150px"
format="dd/MM/yyyy"
constraint="no future"
maxDate="@load(vm.maxDate)" />
</vbox>
<div width="10px" />
<vbox>
<label value="Fecha Hasta:" style="font-weight: bold;" />
</vbox>
<vbox width="150px" style="margin-left: 15px;">
<datebox id="dtbFechaHasta" width="150px"
format="dd/MM/yyyy"
constraint="no future"
maxDate="@load(vm.maxDate)" />
</vbox>
</hbox>
</hbox>
</div>
<div height="15px" />
<!-- SEGUNDA FILA: Botones -->
<div width="100%" style="text-align: center; margin-top: -5px;">
<button width="120px" height="27px" id="btnConsultar" label="Consultar"
style="display: inline-block; margin: 0 10px; font-weight: bold; border-radius: 5px;" />
<button width="140px" height="27px" id="btnGenerarPDF" label="Reporte PDF"
style="display: inline-block; margin: 0 10px; font-weight: bold; border-radius: 5px;" />
<button width="140px" height="27px" id="btnGenerarReporte" label="Reporte XLS"
style="display: inline-block; margin: 0 10px; font-weight: bold; border-radius: 5px;" />
</div>
</vbox>
</div>
</div>
</div>
</north>
<!-- CENTER - Tabla -->
<center border="none">
<div style="padding: 5px;">
<div style="border: 1px solid #a0a0a0; border-radius: 5px; padding: 5px; height: 100%; width: 100%;">
<!-- Mensaje de error -->
<div align="right">
<hbox width="100%" align="right">
<label id="lblError" visible="false" style="color:red;" />
</hbox>
</div>
<!-- Tabla con Scroll -->
<div style="width: 100%; height: 100%; overflow: auto;">
<listbox id="lstMovimientos" width="100%" height="100%"
model="@bind(vm.listaMovimientos)"
emptyMessage=""
mold="paging"
pagingPosition="top"
pageSize="10"
style="border: 1px solid #a0a0a0; border-radius: 3px;">
<!-- AUXHEAD - Mismo que el original -->
<auxhead>
<auxheader label="Nombre" colspan="1" align="center" style="font-weight: bold; font-size: 11px;" />
<auxheader label="Fecha" colspan="1" align="center" style="font-weight: bold; font-size: 11px;" />
<auxheader label="Localidad" colspan="1" align="center" style="font-weight: bold; font-size: 11px;" />
<auxheader label="" colspan="1" align="center" />
<auxheader label="Número" colspan="1" align="center" style="font-weight: bold; font-size: 11px;" />
<auxheader label="" colspan="1" align="center" />
<auxheader label="" colspan="1" align="center" />
</auxhead>
<!-- LISTHEAD - Con nuestros porcentajes mejorados -->
<listhead sizable="true">
<!-- Columna 1: Comercio (14%) -->
<listheader width="14%" align="center">
<div style="width: 100%; text-align: center; padding: 4px 0;">
<label value="Comercio" style="font-weight:bold; font-size: 11px;" />
</div>
</listheader>
<!-- Columna 2: Consumo (12%) -->
<listheader width="12%" align="center">
<div style="width: 100%; text-align: center; padding: 4px 0;">
<label value="Consumo" style="font-weight:bold; font-size: 11px;" />
</div>
</listheader>
<!-- Columna 3: Comercio (14%) -->
<listheader width="14%" align="center">
<div style="width: 100%; text-align: center; padding: 4px 0;">
<label value="Comercio" style="font-weight:bold; font-size: 11px;" />
</div>
</listheader>
<!-- Columna 4: Empresa (12%) -->
<listheader width="12%" align="center">
<div style="width: 100%; text-align: center; padding: 4px 0;">
<label value="Empresa" style="font-weight:bold; font-size: 11px;" />
</div>
</listheader>
<!-- Columna 5: Identificación (10%) -->
<listheader width="10%" align="center">
<div style="width: 100%; text-align: center; padding: 4px 0;">
<label value="Identificación" style="font-weight:bold; font-size: 11px;" />
</div>
</listheader>
<!-- Columna 6: Apellidos y Nombres (20%) - CENTRADO -->
<listheader width="20%" align="center">
<div style="width: 100%; text-align: center; padding: 4px 0;">
<label value="Apellidos y Nombres" style="font-weight:bold; font-size: 11px;" />
</div>
</listheader>
<!-- Columna 7: Valor (8%) - CENTRADO -->
<listheader width="8%" align="center">
<div style="width: 100%; text-align: center; padding: 4px 0;">
<label value="Valor" style="font-weight:bold; font-size: 11px;" />
</div>
</listheader>
</listhead>
<!-- Template con bindings del original -->
<template name="model" var="ser">
<listitem>
<!-- Comercio -->
<listcell align="center" style="padding: 4px 0;">
<label value="@load(ser.institucionAdq.nombreComercial)"
tooltiptext="@load(ser.institucionAdq.nombreComercial)" />
</listcell>
<!-- Consumo (Fecha) -->
<listcell align="center" style="padding: 4px 0;">
<label value="@load(ser.fechaAdicion)"
tooltiptext="@load(ser.fechaAdicion)" />
</listcell>
<!-- Comercio (Local) -->
<listcell align="center" style="padding: 4px 0;">
<label value="@load(ser.localComercial)"
tooltiptext="@load(ser.localComercial)" />
</listcell>
<!-- Empresa -->
<listcell align="center" style="padding: 4px 0;">
<label value="@load(ser.institucionAut.nombreComercial)"
tooltiptext="@load(ser.institucionAut.nombreComercial)" />
</listcell>
<!-- Identificación -->
<listcell align="center" style="padding: 4px 0;">
<label value="@load(ser.cliente.numeroIdentificacion)"
tooltiptext="@load(ser.cliente.numeroIdentificacion)" />
</listcell>
<!-- Apellidos y Nombres - CENTRADO -->
<listcell align="center" style="padding: 4px 0;">
<label value="@load(ser.cliente.nombreCompleto)"
tooltiptext="@load(ser.cliente.nombreCompleto)" />
</listcell>
<!-- Valor - CENTRADO -->
<listcell align="center" style="padding: 4px 0;">
<label value="@load(ser.strMontoCuota)"
tooltiptext="@load(ser.strMontoCuota)" />
</listcell>
</listitem>
</template>
</listbox>
</div>
</div>
</div>
</center>
<!-- SOUTH - Totales -->
<south border="none">
<div style="padding: 5px;">
<div style="border: 2px solid #a0a0a0; border-radius: 8px; padding: 15px; background: #f8f8f8;">
<div style="font-weight: bold; font-size: 14px; margin-bottom: 10px; text-align: center;">
<label value="Total de Compras" />
</div>
<hbox width="100%" style="padding: 5px 0;">
<div hflex="1">
<hbox>
<vbox>
<label style="font-weight:bold" value="Transacciones: " />
</vbox>
<vbox style="margin-left: 10px;">
<label id="lblTotalTrx" value="@bind(vm.totalTransacciones)" />
</vbox>
</hbox>
</div>
<div hflex="1" style="text-align: right;">
<hbox style="justify-content: flex-end;">
<vbox>
<label style="font-weight:bold" value="Valor: " />
</vbox>
<vbox style="margin-left: 10px;">
<label id="lblTotalConsumos" value="@bind(vm.totalConsumo)" />
</vbox>
</hbox>
</div>
</hbox>
</div>
</div>
</south>
</borderlayout>
</window>
</zk>TestComposer.javajavaimport org.zkoss.zk.ui.*;
import org.zkoss.zk.ui.event.*;
import org.zkoss.zk.ui.select.SelectorComposer;
import org.zkoss.zk.ui.select.annotation.*;
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 SelectorComposer {
@Wire
private Window window;
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
}
@Listen("onClick=#btn")
public void onClick(Event e) {
Messagebox.show("Hi btn");
}
}