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 AMlinkOperacion
12Edison108.162.237.38oh34p7Jul 16, 2020 12:46:16 AMlinkresources
index.zulzul<?xml version="1.0" encoding="UTF-8"?>
<?link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"?>
<?link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" id="awesome-css"?>
<?script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"?>
<?script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"?>
<zk xmlns="http://www.zkoss.org/2005/zul" xmlns:x="native">
<window > <!--viewModel="@id('vm')@init('modelo.comercial.trans.operacionCarteraVM')"-->
<groupbox id="groupBoxI" width="100%" mold="3d" open="false">
<caption label="" iconSclass="z-icon-fas fa-sort" style="text-align: center;" />
<grid>
<columns>
<column width="100px"/>
<column width="450px"/>
<column width="150px"/>
<column width="250px"/>
<column width="100px"/>
<column width="250px"/>
<column width="250px"/>
</columns>
<rows>
<row>
<label value="Ramo:"/>
<hbox>
<textbox width="50px" value="@bind(vm.ramo)" onChange="@command('cargarRamo')"/>
<combobox width="100%" model="@load(vm.listaRamos)"
readonly="true" style="font-size : 10px;color: #000000 !important;"
placeholder="SELECCIONE UN RAMO" selectedItem="@bind(vm.ramoSeleccionado)">
<template name="model">
<comboitem label="@load(each.descripcion)"
style="font-size : 10px;color: #000000 !important;"/>
</template>
</combobox>
</hbox>
<label value="Póliza"/>
<textbox value="@bind(vm.poliza)" onChange="@command('completarPoliza')"/>
<label value="Endoso:"/>
<textbox value="@bind(vm.endoso)" onChange="@command('completarEndoso')"/>
</row>
<row>
<label value="Asegurado:"/>
<hbox>
<textbox width="80px" value="@bind(vm.codigoAsegurado)" class="form-control" onChange="@command('consultaraseguradoCodigo')" style="font-size:12px;"/>
<textbox class="form-control" readonly="true" value="@bind(vm.aseguradoBuscado)" width="360px"/>
</hbox>
<hbox>
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" iconSclass="z-icon-search" popup="consultarAsegurado"/>
</div>
<label value="Factura:"/>
</hbox>
<textbox class="form-control"/>
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" iconSclass="z-icon-search"/>
</div>
</row>
<row>
<label value="Condicion de Pago:"/>
<textbox class="form-control"/>
<hbox>
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" iconSclass="z-icon-search"/>
</div>
<label value="Item/Aplicación:"/>
</hbox>
<textbox class="form-control"/>
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" iconSclass="z-icon-search"/>
</div>
</row>
</rows>
</grid>
</groupbox>
<separator/>
<listbox width="100%" mold="paging" >
<listhead>
<listheader label="Ramo" style="font-size : 9px;" />
<listheader label="Descripcion" style="font-size : 9px;"/>
<listheader label="Póliza" style="font-size : 9px;"/>
<listheader label="Endoso" style="font-size : 9px;"/>
<listheader label="Fecha Emision" style="font-size : 9px;"/>
<listheader label="Fecha Vigencia" style="font-size : 9px;"/>
<listheader label="Prima Neta" style="font-size : 9px"/>
<listheader label="Tipo" style="font-size : 9px;"/>
<listheader label="Firmada" style="font-size : 9px;"/>
</listhead>
<template name="model">
<listitem >
<listcell label="@load(each.ramo.descripcion)" style="font-size : 9px;"/>
</listitem>
</template>
<listfoot >
<listfooter>
<label value=""/>
</listfooter>
<listfooter>
<label value=""/>
</listfooter>
<listfooter>
<label value=""/>
</listfooter>
<listfooter>
<label value=""/>
</listfooter>
<listfooter>
<label value=""/>
</listfooter>
<listfooter>
<label value=""/>
</listfooter>
<listfooter>
<label value=""/>
</listfooter>
<listfooter>
<label value=""/>
</listfooter>
<listfooter>
<label value="TOTAL" style="font-size : 11px;font-weight: bold;"/>
</listfooter>
<listfooter align="right">
<label
style="text-align:right;font-size : 10px; font-weight: bold;"/>
</listfooter>
</listfoot>
</listbox>
<separator/>
<div style="overflow-y: auto;height:500px;">
<x:ul class="nav nav-tabs">
<x:li class="active"><x:a data-toggle="tab" href="#home">Datos</x:a></x:li>
<x:li><x:a data-toggle="tab" href="#menu1">Items</x:a></x:li>
<x:li><x:a data-toggle="tab" href="#menu2">Saldos</x:a></x:li>
</x:ul>
<x:div class="tab-content">
<x:div id="home" class="tab-pane fade in active">
<grid>
<columns>
<column width="90px" label=""/>
<column width="140px" label=""/>
<column width="120px" label=""/>
<column width="100px" label=""/>
<column width="100px" label=""/>
<column width="80px" label="" />
<column width="80px" label=""/>
<column width="150px" label=""/>
<column width="80px" label=""/>
<column width="100px" label=""/>
<column width="100px" label=""/>
<column width="100%" label=""/>
</columns>
<rows>
<row>
<label value="Agencia:" style="font-weight:bold"/>
<label value="AMBATO"/>
<label value="Fecha Emisión:" style="font-weight:bold"/>
<label value="29/09/2020"/>
<label value="Renueva a:" style="font-weight:bold"/>
<label value="000000"/>
<label value="Vigencia:" style="font-weight:bold"/>
<hbox>
<label value="00/00/0000"/>
<label value="00/00/0000"/>
</hbox>
<label value="Días:" style="font-weight:bold"/>
<label value="700"/>
<label value="Renovada por:" style="font-weight:bold"/>
<label value="0000000"/>
</row>
<row>
<label value="Asegurado:" style="font-weight:bold"/>
<cell colspan="4">
<label value="000000 - YANCHATIPAN SUAREZ EDISON PAUL" zclass="text-primary" />
</cell>
<label value="Contratante:" style="font-weight:bold"/>
<cell colspan="6">
<label value="000000 - YANCHATIPAN SUAREZ EDISON PAUL" zclass="text-primary"/>
</cell>
</row>
<row>
<label value="Moneda:" style="font-weight:bold"/>
<label value="DOLARES"/>
<label value="T/Cambio:" style="font-weight:bold"/>
<label value="1.000"/>
<label value="Prima Deveng:" style="font-weight:bold"/>
<label value="0.00"/>
<label value="Operación:" style="font-weight:bold"/>
<label value="POLIZA NUEVA"/>
<label value="Motivo:" style="font-weight:bold"/>
<label value="POLIZA NUEVA"/>
<label value="Ej. Cuenta:" style="font-weight:bold"/>
<label value="DOLORES SALCEDO" style="font-size:11px"/>
</row>
<row>
<label value="Condición:" style="font-weight:bold"/>
<label value="00000000 CONTADO"/>
<label value="Usuario:" style="font-weight:bold"/>
<label value="gvillafu"/>
<label value="Fec. Pago:" style="font-weight:bold"/>
<label value="00/00/0000"/>
<label value="Caract. de Póliza:" style="font-weight:bold"/>
<label value="NORMAL"/>
<label value="Método de Cálculo:" style="font-weight:bold"/>
<label value="A PRORRATA"/>
<label value="Fac/NC:" style="font-weight:bold"/>
<label value="001-002-000058740"/>
</row>
<row>
<label value="Tipo:" style="font-weight:bold"/>
<label value="SEGURO PROPIO"/>
</row>
</rows>
</grid>
<div style="overflow-y: auto;height:200px;">
<x:ul class="list-group" width="25%">
<x:li class="list-group-item"><label value="Suma Asegurada US$:" style="font-weight:bold"/><x:span class="badge"><label value="12,000.00" zclass="text-light"/></x:span></x:li>
<x:li class="list-group-item">Prima Neta: <x:span class="badge">5</x:span></x:li>
<x:li class="list-group-item">Contribución SuperIntendencia de Compañias Valores y Seguros: <x:span class="badge">3</x:span></x:li>
<x:li class="list-group-item">Impuesto S.C.C.: <x:span class="badge">5</x:span></x:li>
<x:li class="list-group-item">S.C.C. (2001-2007): <x:span class="badge">5</x:span></x:li>
<x:li class="list-group-item">Derecho de Emisión: <x:span class="badge">5</x:span></x:li>
<x:li class="list-group-item">Otros Cargos Sujetos a I.V.A.: <x:span class="badge">5</x:span></x:li>
<x:li class="list-group-item">I.V.A.: <x:span class="badge">5</x:span></x:li>
<x:li class="list-group-item">Financiación: <x:span class="badge">5</x:span></x:li>
<x:li class="list-group-item">Otros Cargos No Sujetos a I.V.A.: <x:span class="badge">5</x:span></x:li>
<x:li class="list-group-item">Fonsat: <x:span class="badge">5</x:span></x:li>
<x:li class="list-group-item">Prima Total: <x:span class="badge badge-pill badge-success">1,500.00</x:span></x:li>
</x:ul>
</div>
</x:div>
<x:div id="menu1" class="tab-pane fade"> <!--ITEMS-->
<listbox width="100%" mold="paging" visible="false">
<listhead>
<listheader label="Item" style="font-size : 9px;" />
<listheader label="Placa" style="font-size : 9px;"/>
<listheader label="Marca" style="font-size : 9px;"/>
<listheader label="Modelo" style="font-size : 9px;"/>
<listheader label="Chasis" style="font-size : 9px;"/>
<listheader label="Fecha Vigencia" style="font-size : 9px;"/>
<listheader label="Tipo Vehículo" style="font-size : 9px"/>
<listheader label="Propietario" style="font-size : 9px"/>
<listheader label="Estado" style="font-size : 9px;"/>
</listhead>
<template name="model">
<listitem >
<listcell label="@load(each.ramo.descripcion)" style="font-size : 9px;"/>
</listitem>
</template>
</listbox>
<!--VH-->
<listbox width="100%" mold="paging" visible="false">
<listhead>
<listheader label="Item" style="font-size : 9px;" />
<listheader label="Placa" style="font-size : 9px;"/>
<listheader label="Marca" style="font-size : 9px;"/>
<listheader label="Modelo" style="font-size : 9px;"/>
<listheader label="Chasis" style="font-size : 9px;"/>
<listheader label="Fecha Vigencia" style="font-size : 9px;"/>
<listheader label="Tipo Vehículo" style="font-size : 9px"/>
<listheader label="Propietario" style="font-size : 9px"/>
<listheader label="Estado" style="font-size : 9px;"/>
</listhead>
<template name="model">
<listitem >
<listcell label="@load(each.ramo.descripcion)" style="font-size : 9px;"/>
</listitem>
</template>
</listbox>
<groupbox width="100%" mold="3d" open="false" visible="false">
<caption label="Datos de Vehículo" iconSclass="z-icon-fas fa-car"/>
<grid>
<columns>
<column width="90px" label=""/>
<column width="140px" label=""/>
<column width="120px" label=""/>
<column width="100px" label=""/>
<column width="100px" label=""/>
<column width="80px" label="" />
<column width="80px" label=""/>
<column width="150px" label=""/>
<column width="80px" label=""/>
<column width="100px" label=""/>
<column width="100px" label=""/>
<column width="100%" label=""/>
</columns>
<rows>
<row>
<label value="Marca:" style="font-weight:bold"/>
<label value="CHEVROLET"/>
<label value="Modelo:" style="font-weight:bold"/>
<cell colspan="2">
<label value=" D-MAX CRDI 2.5"/>
</cell>
<label value="Motor:" style="font-weight:bold"/>
<cell colspan="2">
<label value="4JK1UE0953"/>
</cell>
<label value="Chasis:" style="font-weight:bold"/>
<cell colspan="3">
<label value="8LBETF3P8L0002477"/>
</cell>
</row>
<row>
<label value="Carrocería:" style="font-weight:bold"/>
<label value="DOBLE CABINA"/>
<label value="Color:" style="font-weight:bold"/>
<label value="ROJO"/>
<label value="Procedencia:" style="font-weight:bold"/>
<label value="ECUADOR"/>
<label value="Uso:" style="font-weight:bold"/>
<cell colspan="5">
<label value="PARTICULAR"/>
</cell>
</row>
<row>
<label value="Placa:" style="font-weight:bold"/>
<label value="PRJ0697"/>
<label value="Año:" style="font-weight:bold"/>
<label value="2021"/>
<label value="Act. Valor:" style="font-weight:bold"/>
<label value="-"/>
<label value="Tarjeta:" style="font-weight:bold"/>
<cell colspan="5">
<label value="-"/>
</cell>
</row>
<row>
<label value="Cobertura:" style="font-weight:bold"/>
<cell colspan="2">
<label value="TD - TODO RIESGO"/>
</cell>
<label value="Inspector:" style="font-weight:bold"/>
<cell colspan="8">
<label value="129 - MARCO PILAMALA"/>
</cell>
</row>
</rows>
</grid>
</groupbox>
<groupbox width="100%" mold="3d" open="false" visible="false">
<caption label="Coberturas" iconSclass="z-icon-fas fa-car" />
<listbox width="100%" mold="paging" >
<listhead>
<listheader label="Código" style="font-size : 9px;" />
<listheader label="Descripción" style="font-size : 9px;"/>
<listheader label="Incl." style="font-size : 9px;"/>
<listheader label="Suma Asegurada" style="font-size : 9px;"/>
<listheader label="Tasa" style="font-size : 9px;"/>
<listheader label="Prima Neta" style="font-size : 9px;"/>
</listhead>
<template name="model">
<listitem >
<listcell label="@load(each.ramo.descripcion)" style="font-size : 9px;"/>
</listitem>
</template>
<listfoot >
<listfooter>
<label value=""/>
</listfooter>
<listfooter>
<label value=""/>
</listfooter>
<listfooter>
<label value="TOTAL" style="font-size : 11px;font-weight: bold;"/>
</listfooter>
<listfooter>
<label value="0000" style="text-align:right;font-size : 10px; font-weight: bold;"/>
</listfooter>
<listfooter>
<label value=""/>
</listfooter>
<listfooter align="right">
<label value="0000"
style="text-align:right;font-size : 10px; font-weight: bold;"/>
</listfooter>
</listfoot>
</listbox>
</groupbox>
</x:div>
<x:div id="menu2" class="tab-pane fade">
<label value="Condicion de Pago3:"/>
</x:div>
</x:div>
</div>
<popup id="consultarAsegurado" width="500px">
<vbox>
<grid>
<columns>
<column label="" width="30%"/>
<column label="" width="70%"/>
</columns>
<rows>
<row>
<label value="Tipo de Búsqueda:" style="font-size : 10px;"/>
<radiogroup selectedItem="@bind(vm.opcionAsegurado)">
<radio label="Nombre" style="font-size : 10px;" value="1" />
<radio label="Identificación" style="font-size : 10px;" value="2"/>
<radio label="Código" style="font-size : 10px;" value="3"/>
</radiogroup>
</row>
<row>
<label value="Asegurado:"/>
<hbox>
<textbox value="@bind(vm.asegurado)" width="240px" style="font-size : 10px;text-transform:uppercase;" forward="onOK=consulta.onClick" onCreate="self.focus()"/>
<button id="consulta" image="/imagenes/Search16.png" style="font-size : 10px;"
onClick="@command('consultaAsegurados')" tooltiptext="Consultar" />
</hbox>
</row>
</rows>
</grid>
<separator />
<hbox>
<listbox model="@load(vm.aseguradosList)"
selectedItem="@bind(vm.aseguradoSelec)"
onSelect="@command('cargaAsegurado')" mold="paging" pageSize="8">
<listhead>
<listheader label="Asegurado" style="font-size : 10px; " width="100px"/>
<listheader label="Nombre" style="font-size : 10px;" width="300px"/>
</listhead>
<template name="model">
<listitem>
<listcell label="@load(each.asegurado)" style="font-size : 10px;"/>
<listcell label="@load(each.nombre_corto)" style="font-size : 10px;"/>
</listitem>
</template>
</listbox>
</hbox>
<separator />
</vbox>
</popup>
</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");
}
}