Processing...

Suggested case list:

Using timer to refresh a grid

383guest172.69.33.12125nk0uiMay 7, 2020 7:23:47 AMlink

user model to move item to another listbox

120guest162.158.193.148d0n3krApr 2, 2020 5:28:28 AMlink

Disabled list item row passed to VM-1981

296fatih123160.83.36.13025nk0uiFeb 13, 2018 4:25:44 PMlink

Disabled list item row passed to VM-1981

295fatih123160.83.36.13025nk0uiFeb 13, 2018 4:25:16 PMlink

Disabled list item row passed to VM-1981

294fatih123160.83.36.13225nk0uiFeb 13, 2018 3:30:44 PMlink

grid sample with ListModel/RowRenderer

816guest80.82.2.1312vah9ajFeb 21, 2017 11:42:21 AMlink

grid sample with ListModel/RowRenderer

809guest175.98.113.1622vah9ajJan 26, 2017 9:19:33 AMlink

grid sample with ListModel/RowRenderer

196guest79.185.142.402vah9ajApr 26, 2014 10:53:57 PMlink

grid sample with ListModel/RowRenderer

195guest79.185.142.402vah9ajApr 26, 2014 10:53:54 PMlink

grid sample with ListModel/RowRenderer

194guest79.185.142.402vah9ajApr 26, 2014 10:53:51 PMlink

grid sample with ListModel/RowRenderer

193guest79.185.142.402vah9ajApr 26, 2014 10:53:48 PMlink

grid sample with ListModel/RowRenderer

192guest79.185.142.402vah9ajApr 26, 2014 10:53:44 PMlink

grid sample with ListModel/RowRenderer

191guest79.185.142.402vah9ajApr 26, 2014 10:53:40 PMlink

Hierarchy table without using ZK PE/EE

1aaknai151.28.135.2131s871daJul 29, 2013 11:02:46 PMlink

grid sample with ListModel/RowRenderer

128aaknai151.28.135.2132vah9ajJul 29, 2013 7:20:00 PMlink

user model to move item to another listbox

1TonyQ114.25.109.94d0n3krApr 21, 2012 10:43:27 AMlink

Using timer to refresh a grid

1TonyQ220.133.44.3725nk0uiFeb 17, 2012 3:17:34 AMlink

Fire a event from child iframe

1TonyQ220.133.44.372eupjotFeb 3, 2012 5:04:52 AMlink

Textbox input restriction sample

1TonyQ72.21.245.2431b3nlr0Dec 20, 2011 10:09:10 AMlink

Test web core taglib in ZUL

1TonyQ198.203.175.175ofqkemDec 17, 2011 3:36:08 AMlink

Latest 10 Fiddles :

constraint binding textbox

3guest172.68.151.16220peldaDec 5, 2025 5:08:19 PMlink

Another new ZK fiddle

2guest172.68.151.16320peldaDec 5, 2025 5:07:51 PMlink

Another new ZK fiddle

1guest172.68.151.16220peldaDec 5, 2025 5:07:32 PMlink

Another new ZK fiddle

1peggypeng172.71.154.99364f4neDec 5, 2025 9:24:31 AMlink

tooltip example

2guest104.22.23.13rc1ntoDec 4, 2025 2:23:45 PMlink

Another new ZK fiddle

1guest172.69.134.2277t7602Dec 4, 2025 1:40:46 PMlink

Another new ZK fiddle

1peggypeng104.22.17.1802df6e3oDec 4, 2025 8:41:29 AMlink

onClose

1peggypeng172.68.87.248j8kd8aDec 3, 2025 4:10:26 AMlink

Another new ZK fiddle

1peggypeng172.69.134.2271rm7f4eNov 26, 2025 3:31:24 AMlink

ZK-5912-Suggestion

2rebeccalai104.22.20.1442qrmiiuNov 26, 2025 2:07:15 AMlink

Another new ZK fiddle

3Edison162.158.187.1492qvt9i6Jul 26, 2020 5:33:12 AMlink

resources

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"> <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;vertical-align: middle;" width="25px"/> <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 iconSclass="z-icon-fas fa-check-circle fa-stack-1x fa-ban" style="color:green; font-size:20px;vertical-align: middle;"/> <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.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"); } }