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 :

ComboBox - Selection with Checkboxes

25guest162.158.187.7elaaadMar 29, 2024 7:57:07 AMlink

ComboBox - Selection with Checkboxes

24guest172.70.206.179elaaadMar 29, 2024 7:27:32 AMlink

check

244guest172.71.126.18620t2jmoMar 29, 2024 7:08:48 AMlink

frozen scroll

1guest172.69.33.373j82a06Mar 28, 2024 8:03:44 AMlink

Gmarker and forEach

1guest172.68.67.1362lpvk1hMar 28, 2024 7:29:50 AMlink

Gmaps

1guest172.68.67.1363dvghg5Mar 28, 2024 7:28:20 AMlink

grid demo

5guest172.71.158.2371grhhu3Mar 27, 2024 7:46:36 AMlink

grid demo

4guest172.71.158.2371grhhu3Mar 27, 2024 7:46:25 AMlink

grid demo

3guest172.71.154.181grhhu3Mar 27, 2024 7:44:16 AMlink

grid demo

2guest172.71.154.181grhhu3Mar 27, 2024 7:43:58 AMlink

Another new ZK fiddle

8guest181.175.219.24636vihd1Mar 20, 2019 3:25:04 PMlink

resources

index.zulzul<zk > <!--<?link rel="icon" type="image/x-icon" href="/sweaden.ico"?> --> <style> .mainCaption { display: flex; } .mainCaption .z-caption-content { display: flex; flex-grow: 1; } .mainCaption .z-caption-content > .captionButtons { display: inline-block; flex-grow: 1; text-align: right; margin-right: 1px; } .captionButton { font-size: 18px; margin: 0px 0px 0px -1px; padding: 2px 6px; border: 1px solid #cfcfcf; color: #636363; } .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; } .fgrid .z-grid-odd .fgrid .z-row-inner,.fgrid .z-grid-odd .z-cell { background-color: #F7F7F7; border-bottom: 1px solid transparent; border-left: 1px solid transparent; border-top: 1px solid transparent; } .fgrid .z-grid-odd .fgrid.z-row-inner,.fgrid.z-grid-odd .z-cell,.fgrid.z-grid-odd { background: none repeat scroll 0 0 transparent; } .fgrid tr.z-grid-odd td.z-row-inner,.fgrid tr.z-grid-odd .z-cell,.fgrid tr.z-grid-odd { background: white } .fgrid tr.z-row td.z-row-inner,.fgrid tr.z-row .z-cell { background: white; border-top: none; } </style> <window border="normal" width="970px" height="800px"> <!--viewModel="@id('vm')@init('modelo.comercial.trans.ordenEmisionVM')" --> <caption height="10px" sclass="mainCaption"> <div align="center" sclass="captionButtons"> <button image="/imagenes/help20.png" sclass="captionButton" onClick="@command('visualizarManual')" tooltiptext="Visualizar Manual"/> </div> </caption> <!-- <toolbar> <toolbarbutton image="/imagenes/nuevo20.png" tooltiptext="Nueva Orden" onClick="@command('nuevaOrden1')"/> <toolbarbutton image="/imagenes/save20.png" tooltiptext="Guardar Orden" onClick="@command('guardarOrden')"/> <toolbarbutton image="/imagenes/pdf20.png" tooltiptext="Ver Orden" disabled="false" onClick="@command('verOrden')"/> </toolbar>--> <tabbox width="100%" height="45%" > <!--500px--> <tabs> <tab label="Afianzados" selected="@bind(vm.seleccionaDatos)" style="font-size : 10px;" /> <tab label="Mantenimiento" selected="@bind(vm.seleccionaConsultas)" style="font-size : 10px;" /> </tabs> <tabpanels> <tabpanel> <vbox> <button image="/imagenes/Search16.png" style="font-size : 10px;" onClick="@command('cargarDatosAfianzado')" tooltiptext="Buscar Cliente" disabled="@bind(vm.consultarAseguradoAfControl)"/> <listbox id="" width="" height="" onSelect=""> <listhead> <listheader label="RUC" style="font-size : 10px;color: #000000 !important;" width="80px"/> <listheader label="Nombre" style="font-size : 10px;color: #000000 !important;"/> <listheader label="Estado" style="font-size : 10px;color: #000000 !important;" width="120px"/> <listheader label="Acción" style="font-size : 10px;color: #000000 !important;" width="60px"/> </listhead> <listitem> <listcell label="0503152456001" style="font-size : 9px;color: #000000 !important;"/> <listcell label="INSTITUTO DE ALTOS ESTUDIOS NACIONALES" style="font-size : 10px;color: #000000 !important;"/> <listcell label="CALIFICADO" style="font-size : 10px;color: #000000 !important;"/> <listcell label="" style="font-size : 10px;color: #000000 !important;"> <hbox> <button image="/imagenes/Search16.png" style="font-size : 10px;" onClick="@command('cargarDatosAfianzado')" tooltiptext="Buscar Cliente" disabled="@bind(vm.consultarAseguradoAfControl)"/> </hbox> </listcell> </listitem> </listbox> </vbox> </tabpanel> <tabpanel> <grid> <columns> <column label="" width="80px"/> <column label="" width="160px"/> <column label="" width="70px"/> <column label="" width="110px"/> <column label="" width="70px"/> <column label="" width="50px"/> <column label="" width="150px"/> <column label="" width="50px"/> <column label="" width="100%"/> </columns> <rows> <row> <label value="Tipo de Doc.:" style="font-size : 10px;"/> <combobox width="100%" model="@load(vm.tiposID)" readonly="true" style="font-size : 10px;color: #000000 !important;" placeholder="SELECCIONE UN TIPO" selectedItem="@bind(vm.tipoIDClie)" disabled="@bind(vm.tipoDocAfControl)" onSelect="@command('cambioTipoIDClie')"> <template name="model"> <comboitem label="@load(each)" style="font-size : 10px"/> </template> </combobox> <label value="Documento:" style="font-size : 10px;"/> <vlayout xmlns:w="client"> <textbox value="@bind(vm.identificacionClie)" width="100%" style="font-size : 10px;color: #000000 !important;" maxlength="@bind(vm.cantidadDigitosClie)" disabled="@bind(vm.identificacionAfControl)"> <attribute w:name="doKeyPress_"> <![CDATA[ function(evt) { if (!this._shallIgnore(evt, "0123456789")) this.$doKeyPress_(evt); } ]]> </attribute> </textbox> </vlayout> <button image="/imagenes/Search16.png" style="font-size : 10px;" onClick="@command('cargarDatosAfianzado')" tooltiptext="Buscar Cliente" disabled="@bind(vm.consultarAseguradoAfControl)"/> <label value="Nombre:" style="font-size : 10px;"/> <cell colspan="3"> <vlayout xmlns:w="client"> <textbox value="@bind(vm.nombreClie)" width="100%" style="font-size : 10px;color: #000000 !important;text-transform:uppercase;" disabled="@bind(vm.nombresAfControl)"> <attribute w:name="doKeyPress_"> <![CDATA[ function(evt) { if (!this._shallIgnore(evt, "abcdefghijklmñnopqrstuvwxyz ABCDEFGHIJKLMÑNOPQRSTUVWXYZ")) this.$doKeyPress_(evt); } ]]> </attribute> </textbox> </vlayout> </cell> </row> <row> <label value="Dirección:" style="font-size : 10px;"/> <cell colspan="3"> <vlayout xmlns:w="client"> <textbox value="@bind(vm.direccionClie)" width="100%" style="font-size : 10px;color: #000000 !important;text-transform:uppercase;" disabled="@bind(vm.direccionAfControl)"> <attribute w:name="doKeyPress_"> <![CDATA[ function(evt) { if (!this._shallIgnore(evt, "abcdefghijklmñnopqrstuvwxyz ABCDEFGHIJKLMÑNOPQRSTUVWXYZ 0123456789")) this.$doKeyPress_(evt); } ]]> </attribute> </textbox> </vlayout> </cell> <label value="Email:" style="font-size : 10px;"/> <cell colspan="2"> <textbox value="@bind(vm.emailClie)" width="100%" style="font-size : 10px;color: #000000 !important;" disabled="@bind(vm.emailAfControl)" constraint="/.+@.+\.[a-z]+/: Por favor ingrese un Email válido"/> </cell> <label value="Teléfono:" style="font-size : 10px;"/> <vlayout xmlns:w="client"> <textbox value="@bind(vm.telefonosClie)" width="100%" style="font-size : 10px;color: #000000 !important;" maxlength="10" disabled="@bind(vm.telefonoAfControl)"> <attribute w:name="doKeyPress_"> <![CDATA[ function(evt) { if (!this._shallIgnore(evt, "0123456789")) this.$doKeyPress_(evt); } ]]> </attribute> </textbox> </vlayout> </row> </rows> </grid> <hlayout> <groupbox width="500px" visible="@bind(vm.panelNatural)"> <caption style="font-size : 10px;"> <label value="Garantes" style="font-size : 10px;"/> </caption> <vbox> <button image="/imagenes/Search16.png" style="font-size : 10px;" onClick="@command('cargarDatosAfianzado')" tooltiptext="Buscar Cliente" disabled="@bind(vm.consultarAseguradoAfControl)"/> <listbox id="" width="" height="" onSelect=""> <listhead> <listheader label="CI/RUC" style="font-size : 10px;color: #000000 !important;" width="60px"/> <listheader label="Nombre" style="font-size : 10px;color: #000000 !important;" width="200px"/> <listheader label="Cargo" style="font-size : 10px;color: #000000 !important;" width="115px"/> <listheader label="Acción" style="font-size : 10px;color: #000000 !important;"/> </listhead> <listitem> <listcell label="1803735982001" style="font-size : 9px;color: #000000 !important;"/> <listcell label="VASQUEZ MENA ADRIANA ELIZABETH" style="font-size : 10px;color: #000000 !important;"/> <listcell label="PROFESORA" style="font-size : 10px;color: #000000 !important;"/> <listcell label="" style="font-size : 10px;color: #000000 !important;"> <hbox> <button image="/imagenes/Search16.png" style="font-size : 10px;" onClick="@command('cargarDatosAfianzado')" tooltiptext="Buscar Cliente" disabled="@bind(vm.consultarAseguradoAfControl)"/> <button image="/imagenes/Search16.png" style="font-size : 10px;" onClick="@command('cargarDatosAfianzado')" tooltiptext="Buscar Cliente" disabled="@bind(vm.consultarAseguradoAfControl)"/> </hbox> </listcell> </listitem> </listbox> </vbox> </groupbox> <groupbox width="430px" visible="@bind(vm.panelNatural)"> <caption style="font-size : 10px;"> <label value="Documentación" style="font-size : 10px;"/> </caption> <vbox> <button image="/imagenes/Search16.png" style="font-size : 10px;" onClick="@command('cargarDatosAfianzado')" tooltiptext="Buscar Cliente" disabled="@bind(vm.consultarAseguradoAfControl)"/> <listbox id="" width="" height="" onSelect=""> <listhead> <listheader label="Documento" style="font-size : 10px;color: #000000 !important;" width="180px"/> <listheader label="Tipo de Documento" style="font-size : 10px;color: #000000 !important;" width="135px"/> <listheader label="Acción" style="font-size : 10px;color: #000000 !important;"/> </listhead> <listitem> <listcell label="CERTIFICADO_OBLIGACIONES1.pdf" style="font-size : 9px;color: #000000 !important;"/> <listcell label="Certificado de Obligaciones" style="font-size : 10px;color: #000000 !important;"/> <listcell label="" style="font-size : 10px;color: #000000 !important;"> <hbox> <button image="/imagenes/Search16.png" style="font-size : 10px;" onClick="@command('cargarDatosAfianzado')" tooltiptext="Buscar Cliente" disabled="@bind(vm.consultarAseguradoAfControl)"/> <button image="/imagenes/Search16.png" style="font-size : 10px;" onClick="@command('cargarDatosAfianzado')" tooltiptext="Buscar Cliente" disabled="@bind(vm.consultarAseguradoAfControl)"/> </hbox> </listcell> </listitem> </listbox> </vbox> </groupbox> </hlayout> </tabpanel> </tabpanels> </tabbox> <space/> <tabbox width="100%" height="45%" > <!--500px--> <tabs> <tab label="Solicitudes" selected="@bind(vm.seleccionaDatos)" style="font-size : 10px;" /> <tab label="Mantenimiento" selected="@bind(vm.seleccionaConsultas)" style="font-size : 10px;" /> </tabs> <tabpanels> <tabpanel> <vbox> <button image="/imagenes/Search16.png" style="font-size : 10px;" onClick="@command('cargarDatosAfianzado')" tooltiptext="Buscar Cliente" disabled="@bind(vm.consultarAseguradoAfControl)"/> <listbox id="" width="" height="" onSelect=""> <listhead> <listheader label="Número" style="font-size : 10px;color: #000000 !important;" width="80px"/> <listheader label="Fecha" style="font-size : 10px;color: #000000 !important;"/> <listheader label="Beneficiario" style="font-size : 10px;color: #000000 !important;" width="120px"/> <listheader label="Monto" style="font-size : 10px;color: #000000 !important;" width="120px"/> <listheader label="Estado" style="font-size : 10px;color: #000000 !important;" width="120px"/> <listheader label="Acción" style="font-size : 10px;color: #000000 !important;" width="60px"/> </listhead> <listitem> <listcell label="2019010001" style="font-size : 9px;color: #000000 !important;"/> <listcell label="19/03/2019" style="font-size : 10px;color: #000000 !important;"/> <listcell label="CALIFICADO" style="font-size : 10px;color: #000000 !important;"/> <listcell label="" style="font-size : 10px;color: #000000 !important;"> <hbox> <button image="/imagenes/Search16.png" style="font-size : 10px;" onClick="@command('cargarDatosAfianzado')" tooltiptext="Buscar Cliente" disabled="@bind(vm.consultarAseguradoAfControl)"/> </hbox> </listcell> </listitem> </listbox> </vbox> </tabpanel> </tabpanels> </tabbox> </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"); } }