Processing...
Suggested case list:
Using timer to refresh a grid
383
guest
172.69.33.121
25nk0ui
May 7, 2020 7:23:47 AM
link
user model to move item to another listbox
120
guest
162.158.193.148
d0n3kr
Apr 2, 2020 5:28:28 AM
link
Disabled list item row passed to VM-1981
296
fatih123
160.83.36.130
25nk0ui
Feb 13, 2018 4:25:44 PM
link
Disabled list item row passed to VM-1981
295
fatih123
160.83.36.130
25nk0ui
Feb 13, 2018 4:25:16 PM
link
Disabled list item row passed to VM-1981
294
fatih123
160.83.36.132
25nk0ui
Feb 13, 2018 3:30:44 PM
link
grid sample with ListModel/RowRenderer
816
guest
80.82.2.131
2vah9aj
Feb 21, 2017 11:42:21 AM
link
grid sample with ListModel/RowRenderer
809
guest
175.98.113.162
2vah9aj
Jan 26, 2017 9:19:33 AM
link
grid sample with ListModel/RowRenderer
196
guest
79.185.142.40
2vah9aj
Apr 26, 2014 10:53:57 PM
link
grid sample with ListModel/RowRenderer
195
guest
79.185.142.40
2vah9aj
Apr 26, 2014 10:53:54 PM
link
grid sample with ListModel/RowRenderer
194
guest
79.185.142.40
2vah9aj
Apr 26, 2014 10:53:51 PM
link
grid sample with ListModel/RowRenderer
193
guest
79.185.142.40
2vah9aj
Apr 26, 2014 10:53:48 PM
link
grid sample with ListModel/RowRenderer
192
guest
79.185.142.40
2vah9aj
Apr 26, 2014 10:53:44 PM
link
grid sample with ListModel/RowRenderer
191
guest
79.185.142.40
2vah9aj
Apr 26, 2014 10:53:40 PM
link
Hierarchy table without using ZK PE/EE
1
aaknai
151.28.135.213
1s871da
Jul 29, 2013 11:02:46 PM
link
grid sample with ListModel/RowRenderer
128
aaknai
151.28.135.213
2vah9aj
Jul 29, 2013 7:20:00 PM
link
user model to move item to another listbox
1
TonyQ
114.25.109.94
d0n3kr
Apr 21, 2012 10:43:27 AM
link
Using timer to refresh a grid
1
TonyQ
220.133.44.37
25nk0ui
Feb 17, 2012 3:17:34 AM
link
Fire a event from child iframe
1
TonyQ
220.133.44.37
2eupjot
Feb 3, 2012 5:04:52 AM
link
Textbox input restriction sample
1
TonyQ
72.21.245.243
1b3nlr0
Dec 20, 2011 10:09:10 AM
link
Test web core taglib in ZUL
1
TonyQ
198.203.175.175
ofqkem
Dec 17, 2011 3:36:08 AM
link
Latest 10 Fiddles :
constraint binding textbox
3
guest
172.68.151.162
20pelda
Dec 5, 2025 5:08:19 PM
link
Another new ZK fiddle
2
guest
172.68.151.163
20pelda
Dec 5, 2025 5:07:51 PM
link
Another new ZK fiddle
1
guest
172.68.151.162
20pelda
Dec 5, 2025 5:07:32 PM
link
Another new ZK fiddle
1
peggypeng
172.71.154.99
364f4ne
Dec 5, 2025 9:24:31 AM
link
tooltip example
2
guest
104.22.23.13
rc1nto
Dec 4, 2025 2:23:45 PM
link
Another new ZK fiddle
1
guest
172.69.134.227
7t7602
Dec 4, 2025 1:40:46 PM
link
Another new ZK fiddle
1
peggypeng
104.22.17.180
2df6e3o
Dec 4, 2025 8:41:29 AM
link
onClose
1
peggypeng
172.68.87.248
j8kd8a
Dec 3, 2025 4:10:26 AM
link
Another new ZK fiddle
1
peggypeng
172.69.134.227
1rm7f4e
Nov 26, 2025 3:31:24 AM
link
ZK-5912-Suggestion
2
rebeccalai
104.22.20.144
2qrmiiu
Nov 26, 2025 2:07:15 AM
link
Another new ZK fiddle
1
Edison
108.162.238.7
2qvt9i6
Jul 26, 2020 3:39:01 AM
link
resources
index.zul
zul
<?xml version="1.0" encoding="UTF-8"?> <zk xmlns="http://www.zkoss.org/2005/zul" xmlns:x="native"> <style> .fgrid tr.z-row td.z-row-inner, tr.z-row, div.z-grid-body div.z-cell, div.z-grid { border: none; overflow: hidden; zoom: 1; background: white; border-top: none; border-left: none; border-right: none; border-bottom: none; } </style> <window border="none" > <!--viewModel="@id('vm')@init('com.sweadenseguros.diamante.controller.comercial.CotizacionesWebVm')"--> <!--<div > <button iconSclass="z-icon-save" zclass="btn btn-success btn-xs" label="Guardar" onClick="@command('guardarOrdenEmision')" disabled="@bind(vm.activaOpcionesOrden)" visible="@bind(vm.activaGuardar)" /> <button iconSclass="z-icon-save" zclass="btn btn-success btn-xs" label="Modificar" onClick="@command('modificarOrdenEmision')" disabled="@bind(vm.activaOpcionesOrden)" visible="@bind(vm.activaModificar)" /> <button iconSclass="z-icon-fas fa-file-pdf-o" zclass="btn btn-primary btn-xs" label="Ver Orden" onClick="@command('verReporte')" visible="@bind(vm.activaReporte)"/> <button iconSclass="z-icon-fas fa-check-square-o" zclass="btn btn-info btn-xs" label="Marcar Procesado" visible="@bind(vm.activaProcesado)" onClick="@command('marcarProcesado')"/> <button iconSclass="z-icon-fas fa-archive" zclass="btn btn-success btn-xs" label="Archivar" onClick="@command('archivarOrdenEmision')" visible="@bind(vm.activaArchivar)" /> </div>--> <!--<grid > <columns > <column width="200px" /> <column width="100px" /> <column width="140px" /> <column width="100px" /> <column width="60px" /> <column width="100px" /> </columns> <rows> <row> <radiogroup > <radio label="Nueva" checked="@bind(vm.chknueva)" disabled="@bind(vm.activaOpcionesOrden)" style="font-size : 11px;"/> <radio label="Existente" checked="@bind(vm.chkexistente)" disabled="@bind(vm.activaOpcionesOrden)" style="font-size : 11px;"/> <radio label="Renovación" checked="@bind(vm.chkrenovacion)" onCheck="@command('abrirVencimientos')" disabled="@bind(vm.activaOpcionesOrden)" style="font-size : 11px;"/> </radiogroup> <textbox width="100%" value="@bind(vm.txtpolizaexistente)" disabled="@bind(vm.activaOpcionesOrden)" style="font-size : 11px;"/> <checkbox label="Cotización" checked="@bind(vm.chkcotizacion)" disabled="@bind(vm.activaOpcionesOrden)" style="font-size : 11px;"/> <textbox width="100%" value="@bind(vm.txtcotizacion)" disabled="@bind(vm.activaOpcionesOrden)" style="font-size : 11px;" /> </row> </rows> </grid>--> <listbox model="@load(vm.listaProspectos)" mold="paging" pageSize="8" selectedItem="@bind(vm.prospectoSeleccionado)" onSelect="@command('escogerProspecto')" multiple="true" pagingPosition="both" > <!--disabled="@bind(vm.activaOpcionesOrden)"--> <listhead sizable="true"> <listheader label="" style="font-size : 10px;" width="20px"/> <listheader label="Cotización" style="font-size : 10px;" width="80px"/> <listheader label="Fecha" style="font-size : 10px;" width="90px"/> <listheader label="Identificación" style="font-size : 10px;" width="90px"/> <!--sort="auto(LOWER(mediaArchivo))"--> <listheader label="Nombre" style="font-size : 10px;" width="150px" /> <listheader label="Género" style="font-size : 10px;" width="85px" sort="auto(LOWER(mediaArchivo))"/> <listheader label="Edad" style="font-size : 10px;" width="60px" sort="auto(LOWER(mediaArchivo))"/> <listheader label="Teléfono" style="font-size : 10px;" width="80px" sort="auto(LOWER(mediaArchivo))"/> <listheader label="Mail" style="font-size : 10px;" width="150px" sort="auto(LOWER(mediaArchivo))"/> <listheader label="Ciudad" style="font-size : 10px;" width="150px" sort="auto(LOWER(mediaArchivo))"/> <listheader label="Bróker" style="font-size : 10px;" width="150px" sort="auto(LOWER(mediaArchivo))"/> </listhead> <listitem> <listcell> </listcell> <listcell label="@load(each.codigo_cot)" style="font-size : 10px;"/> <listcell label="@load(each.fecha)" style="font-size : 10px;"/> <listcell label="0503152456"/> <listcell label="@load(each.nombre)"/> <listcell label="@load(each.genero)"/> <listcell label="@load(each.edad)"/> <listcell label="0995736507"/> <listcell label="
[email protected]
"/> <listcell label="@load(each.agencia)"/> <listcell label="@load(each.broker)"/> </listitem> <!--<template name="model" > <listitem> <listcell> </listcell> <listcell label="@load(each.codigo_cot)" style="font-size : 10px;"/> <listcell label="@load(each.fecha)" style="font-size : 10px;"/> <listcell label="@load(each.identificacion)"/> <listcell label="@load(each.nombre)"/> <listcell label="@load(each.genero)"/> <listcell label="@load(each.edad)"/> <listcell label="@load(each.telefono)"/> <listcell label="@load(each.email)"/> <listcell label="@load(each.agencia)"/> <listcell label="@load(each.broker)"/> </listitem> </template>--> </listbox> <separator/> <div style="overflow-y: auto;height:500px;"> <div class="panel panel-primary"> <div class="panel-heading"> <span class="fa fa-car"></span> <label value="Vehículo Cotizado"/> </div> <div class="panel-body"> <grid> <columns > <column width="120px" label=""/> <column width="100px" label=""/> <column width="80px" label=""/> <column width="120px" label=""/> <column width="60px" label=""/> <column width="170px" label=""/> <column width="40px" label=""/> <column width="55px" label=""/> <column width="40px" label=""/> <column width="100px" label=""/> <column width="50px" label=""/> <column width="100px" label=""/> <column width="50px" label=""/> <column width="100px" label=""/> </columns> <rows> <row> <label value="Placa:" style="font-weight:bold"/> <label value="@bind(vm.prospectoSeleccionado.placa)"/> <!--<textbox width="100%" value="@bind(vm.txtcotizacion)" disabled="@bind(vm.activaOpcionesOrden)" style="font-size : 11px;" />--> <label value="Marca:" style="font-weight:bold"/> <label value="@bind(vm.prospectoSeleccionado.marca)"/> <!--<textbox width="100%" value="@bind(vm.txtpolizaexistente)" disabled="@bind(vm.activaOpcionesOrden)" style="font-size : 11px;"/>--> <label value="Modelo:" style="font-weight:bold"/> <label value="@bind(vm.prospectoSeleccionado.modelo)"/> <label value="Año:" style="font-weight:bold"/> <label value="@bind(vm.prospectoSeleccionado.anio)"/> <label value="Uso:" style="font-weight:bold"/> <label value="@bind(vm.prospectoSeleccionado.uso)"/> <label value="Tipo:" style="font-weight:bold"/> <label value="@bind(vm.prospectoSeleccionado.tipo)"/> <label value="Origen:" style="font-weight:bold"/> <label value="@bind(vm.prospectoSeleccionado.origen)"/> </row> <row> <label value="Valor Asegurado $:" style="font-weight:bold"/> <label value="@bind(vm.prospectoSeleccionado.valor_aseg) @converter('formatedNumber', format='###,###,##0.00')" zclass="text-primary" style="font-size:14px"/> <label value="Extras $:" style="font-weight:bold"/> <label value="@bind(vm.prospectoSeleccionado.extras) @converter('formatedNumber', format='###,###,##0.00')" zclass="text-primary" style="font-size:14px"/> </row> </rows> </grid> </div> </div> <hbox> <div class="panel panel-danger" visible="@bind(vm.producto1Visible)"> <div class="panel-heading"> <label value="@bind(vm.producto1.producto)"/> </div> <div class="panel-body"> <vbox> <hbox> <label value="Tasa %:"/> <a label="@bind(vm.sumaTasas1) @converter('formatedNumber', format='###,###,##0.00')" onClick="@command('reset')"/> </hbox> <hbox> <label value="Prima Neta $:"/> <label value="@bind(vm.producto1.primaneta) @converter('formatedNumber', format='###,###,##0.00')" style="font-weight:bold"/> </hbox> <hbox> <label value="Impuestos $:"/> <label value="@bind(vm.sumaImpuestos1) @converter('formatedNumber', format='###,###,##0.00')" style="font-weight:bold"/> </hbox> <hbox> <label value="Prima Total $:"/> <label value="@bind(vm.producto1.primatotal) @converter('formatedNumber', format='###,###,##0.00')" style="font-weight:bold"/> </hbox> </vbox> <button label="Escoger" zclass="btn btn-success btn-sm" width="100%" onClick="@command('escogerProducto',prod=vm.producto1)"/> </div> </div> <div class="panel panel-info" visible="@bind(vm.producto2Visible)"> <div class="panel-heading"> <label value="@bind(vm.producto2.producto)"/> </div> <div class="panel-body"> <vbox> <hbox> <label value="Tasa %:"/> <a label="@bind(vm.sumaTasas2) @converter('formatedNumber', format='###,###,##0.00')" onClick="@command('reset')"/> </hbox> <hbox> <label value="Prima Neta $:"/> <label value="@bind(vm.producto2.primaneta) @converter('formatedNumber', format='###,###,##0.00')" style="font-weight:bold"/> </hbox> <hbox> <label value="Impuestos $:"/> <label value="@bind(vm.sumaImpuestos2) @converter('formatedNumber', format='###,###,##0.00')" style="font-weight:bold"/> </hbox> <hbox> <label value="Prima Total $:"/> <label value="@bind(vm.producto2.primatotal) @converter('formatedNumber', format='###,###,##0.00')" style="font-weight:bold"/> </hbox> </vbox> <button label="Escoger" zclass="btn btn-success btn-sm" width="100%" onClick="@command('escogerProducto',prod=vm.producto2)"/> </div> </div> <div class="panel panel-primary" visible="@bind(vm.producto3Visible)"> <div class="panel-heading"> <label value="@bind(vm.producto3.producto)"/> </div> <div class="panel-body"> <vbox> <hbox> <label value="Tasa %:"/> <a label="@bind(vm.sumaTasas3) @converter('formatedNumber', format='###,###,##0.00')" onClick="@command('reset')"/> </hbox> <hbox> <label value="Prima Neta $:"/> <label value="@bind(vm.producto3.primaneta) @converter('formatedNumber', format='###,###,##0.00')" style="font-weight:bold"/> </hbox> <hbox> <label value="Impuestos $:"/> <label value="@bind(vm.sumaImpuestos3) @converter('formatedNumber', format='###,###,##0.00')" style="font-weight:bold"/> </hbox> <hbox> <label value="Prima Total $:"/> <label value="@bind(vm.producto3.primatotal) @converter('formatedNumber', format='###,###,##0.00')" style="font-weight:bold"/> </hbox> </vbox> <button label="Escoger" zclass="btn btn-success btn-sm" width="100%" onClick="@command('escogerProducto',prod=vm.producto3)"/> </div> </div> </hbox> </div> <!--<groupbox width="100%" visible="@bind(vm.detalleVh)" mold="3d"> <caption iconSclass="z-icon-fas fa-car" label="Vehículo Cotizado"/> <div class="card bg-primary text-white"> <div class="card-body">Success card</div> hjhjhj </div> </groupbox>--> </window> </zk>
TestComposer.java
java
import 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"); } }
Sorry, JavaScript must be enabled.
Change your browser options, then
try again
.