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 AMlinkAnother new ZK fiddle
1guest220.135.202.1402uin4omApr 2, 2014 2:27:41 AMlinkresources
index.zulzul<?xml version="1.0" encoding="UTF-8"?>
<zk xmlns:h="native">
<window id="window" mode="embedded" border="none" minheight="100" minwidth="200" shadow="true" width="100%" height="100%">
<vlayout spacing="1px" style="background-color:White;" vflex="true" hflex="true" id="FrmTesteCategoriaMD">
<button onClick="loadGrid();" dir="normal" orient="vertical" type="button" label="Pesquisar" id="btnConsultar"/>
<tabbox tabscroll="true" onCreate="self.selectedIndex = 0" width="740px" height="605px" vflex="true" hflex="true" id="pgctrlPrincipal">
<tabpanels>
<tabpanel vflex="false" hflex="false">
<vlayout spacing="1px" style="background-color:White;" width="732px" height="358px" vflex="true" hflex="true" id="FVBox1">
<groupbox open="true" closable="false" contentStyle="overflow:auto;" title=" Filtro Rápido " style="color:#000000;font-size:11px;font-style:normal ;font-family:Tahoma;" width="719px" height="86px" left="0px" top="0px" vflex="false" hflex="true" id="grpBoxFiltro" mold="3d">
<tablelayout columns="3" style="padding:0px;" width="715px" height="69px" left="2px" top="15px" vflex="true" hflex="true" id="FGridPanel1">
<tablechildren rowspan="1" style="padding:0px;" width="19%" height="21px" id="FGridPanel1item00">
<label value="Id. Teste Categoria" maxlength="0" style="color:#000000;font-size:11px;font-style:normal ;white-space:nowrap;font-family:Tahoma;" left="1px" top="1px" tooltiptext="[TESTE_CATEGORIA.Sequence] Identificador da Tabela TESTE_CATEGORIA" id="lfIdTesteCategoria"/>
</tablechildren>
<tablechildren rowspan="1" style="padding:0px;" width="78%" height="21px" id="FGridPanel1item01">
<label value="Descrição" maxlength="0" style="color:#000000;font-size:11px;font-style:normal ;white-space:nowrap;font-family:Tahoma;" left="142px" top="1px" tooltiptext="[TESTE_CATEGORIA.Sequence] Identificador da Tabela TESTE_CATEGORIA" id="lfDescricao"/>
</tablechildren>
<tablechildren rowspan="1" id="FGridPanel1item02"/>
<tablechildren rowspan="1" style="padding:0px;" sclass="tfgridpanel-tc" width="19%" height="13px" id="FGridPanel1item10">
<longbox cols="11" maxlength="0" style="color:#000000;text-align:right;font-size:11px;font-style:normal ;font-family:Tahoma;" width="80px" left="1px" top="22px" hflex="false" id="efIdTesteCategoria"/>
</tablechildren>
<tablechildren rowspan="1" style="padding:0px;" sclass="tfgridpanel-tc" width="78%" height="13px" id="FGridPanel1item11">
<textbox rows="1" type="text" maxlength="30" style="color:#000000;font-size:11px;font-style:normal ;font-family:Tahoma;" width="400px" left="142px" top="22px" hflex="false" id="efDescricao"/>
</tablechildren>
<tablechildren rowspan="1" sclass="tfgridpanel-tc" id="FGridPanel1item12"/>
</tablelayout>
</groupbox>
<listbox mold="paging" id="gridPrincipal" emptyMessage="Esta lista está vazia" oddRowSclass="z-listbox-odd" rows="0" pagingPosition="bottom" sizedByContent="true" pageSize="10" activePage="0" context="uuid(rX8Q_2)" width="718px" height="292px" left="0px" top="87px" vflex="true" hflex="true">
<listhead menupopup="none" sizable="true" visible="true">
<listheader width="80px" label="Id. Teste Categoria"/>
<listheader width="400px" label="Descrição"/>
</listhead>
</listbox>
</vlayout>
</tabpanel>
<tabpanel vflex="false" hflex="false">
<groupbox open="true" closable="false" contentStyle="overflow:auto;" title=" Cadastro " style="color:#000000;font-size:11px;font-style:normal ;font-family:Tahoma;" width="720px" height="572px" left="6px" top="3px" vflex="true" hflex="true" id="grpBoxCadastro" mold="3d">
<vlayout spacing="5px" style="overflow:auto;" vflex="true" hflex="true" id="grpBoxCadastrovContentPane">
<tablelayout columns="2" style="padding:0px;" width="716px" height="63px" left="2px" top="15px" hflex="true" id="FGridPanel2">
<tablechildren rowspan="1" style="padding:0px;" width="143px" height="21px" id="FGridPanel2item00">
<label value="Id. Teste Categoria" maxlength="0" style="color:#000000;font-size:11px;font-style:normal ;white-space:nowrap;font-family:Tahoma;float:right;" left="50px" top="1px" tooltiptext="[TESTE_CATEGORIA.Sequence] Identificador da Tabela TESTE_CATEGORIA" id="lbIdTesteCategoria1"/>
</tablechildren>
<tablechildren rowspan="1" style="padding:0px;" height="21px" hflex="true" id="FGridPanel2item01">
<longbox disabled="true" cols="11" maxlength="0" style="color:#000000;text-align:right;font-size:11px;font-style:normal ;font-family:Tahoma;" width="80px" left="144px" top="1px" hflex="false" id="edIdTesteCategoria1" text="108"/>
</tablechildren>
<tablechildren rowspan="1" style="padding:0px;" width="143px" height="21px" id="FGridPanel2item10">
<label value="Descrição" maxlength="0" style="color:#000000;font-size:11px;font-style:normal ;white-space:nowrap;font-family:Tahoma;float:right;" left="98px" top="22px" tooltiptext="Descrição da Categoria" id="lbDescricao1"/>
</tablechildren>
<tablechildren rowspan="1" style="padding:0px;" height="21px" hflex="true" id="FGridPanel2item11">
<textbox rows="1" type="text" disabled="true" maxlength="50" value="andreas remote" style="color:#000000;font-size:11px;font-style:normal ;font-family:Tahoma;" width="400px" left="144px" top="22px" hflex="false" id="edDescricao1" text="andreas remote"/>
</tablechildren>
<tablechildren rowspan="1" sclass="tfgridpanel-tc" id="FGridPanel2item20"/>
<tablechildren rowspan="1" sclass="tfgridpanel-tc" id="FGridPanel2item21"/>
</tablelayout>
<groupbox open="true" closable="true" title=" Cadastro " style="color:#000000;font-size:11px;font-style:normal ;font-family:Tahoma;" width="716px" height="242px" left="2px" top="78px" vflex="false" hflex="true" id="grpBoxDetalhe2" mold="3d">
<vlayout spacing="1px" width="712px" height="217px" vflex="true" hflex="true" id="FVBox12">
<hlayout valign="top" spacing="1px" width="728px" height="149px" hflex="true" id="FHBox12">
<vlayout spacing="1px" style="padding-right:7px;padding-left:5px;border-style:outset;background-color:Cream;border-color:#EDEDED;border-width:1px;" width="44px" height="139px" id="FVBox22">
<button dir="normal" orient="vertical" type="button" disabled="true" image="http://localhost:8400/images/6.png" style="color:#000000;font-size:11px;font-style:normal ;font-family:Tahoma;padding:0px;" width="30px" height="30px" left="1px" top="1px" id="btnNovoDetalhe2"/>
<button dir="normal" orient="vertical" type="button" disabled="true" image="http://localhost:8400/images/8.png" style="color:#000000;font-size:11px;font-style:normal ;font-family:Tahoma;padding:0px;" width="30px" height="30px" left="1px" top="32px" id="btnExcluirDetalhe2"/>
<button dir="normal" orient="vertical" type="button" disabled="true" image="http://localhost:8400/images/16.png" style="color:#000000;font-size:11px;font-style:normal ;font-family:Tahoma;padding:0px;" width="30px" height="30px" left="1px" top="63px" id="btnConfirmarDetalhe2"/>
<button dir="normal" orient="vertical" type="button" disabled="true" image="http://localhost:8400/images/9.png" style="color:#000000;font-size:11px;font-style:normal ;font-family:Tahoma;padding:0px;" width="30px" height="30px" left="1px" top="94px" id="btnCancelarDetalhe2"/>
</vlayout>
<listbox emptyMessage="Esta lista está vazia" oddRowSclass="z-listbox-odd" rows="0" pagingPosition="bottom" sizedByContent="true" context="uuid(rX8Qx1)" width="660px" height="147px" left="44px" top="0px" vflex="true" hflex="true" id="gridDetalhe2">
<listhead menupopup="none" sizable="true" visible="true">
<listheader width="80px" label="Id. Teste Categoria1"/>
<listheader width="400px" label="Descrição"/>
</listhead>
</listbox>
</hlayout>
<tablelayout columns="2" style="padding:0px;" width="728px" height="63px" left="0px" top="150px" hflex="true" id="gridPanelDetalhe2">
<tablechildren rowspan="1" style="padding:0px;" width="145px" height="21px" id="gridPanelDetalhe2item00">
<label value="Id. Teste Categoria1" maxlength="0" style="color:#000000;font-size:11px;font-style:normal ;white-space:nowrap;font-family:Tahoma;float:right;" left="46px" top="1px" id="lbIdTesteCategoria12"/>
</tablechildren>
<tablechildren rowspan="1" style="padding:0px;" height="21px" hflex="true" id="gridPanelDetalhe2item01">
<longbox disabled="true" cols="11" maxlength="0" style="color:#000000;text-align:right;font-size:11px;font-style:normal ;font-family:Tahoma;" width="80px" left="146px" top="1px" hflex="false" id="edIdTesteCategoria12"/>
</tablechildren>
<tablechildren rowspan="1" style="padding:0px;" width="145px" height="21px" id="gridPanelDetalhe2item10">
<label value="Descrição" maxlength="0" style="color:#000000;font-size:11px;font-style:normal ;white-space:nowrap;font-family:Tahoma;float:right;" left="100px" top="22px" id="lbDescricao2"/>
</tablechildren>
<tablechildren rowspan="1" style="padding:0px;" height="21px" hflex="true" id="gridPanelDetalhe2item11">
<textbox rows="1" type="text" disabled="true" maxlength="0" style="border-left-color:red;color:#000000;font-style:normal ;font-size:11px;font-family:Tahoma;border-left-width:3px;" width="400px" left="146px" top="22px" hflex="false" id="edDescricao2"/>
</tablechildren>
<tablechildren rowspan="1" sclass="tfgridpanel-tc" id="gridPanelDetalhe2item20"/>
<tablechildren rowspan="1" sclass="tfgridpanel-tc" id="gridPanelDetalhe2item21"/>
</tablelayout>
</vlayout>
</groupbox>
<groupbox open="true" closable="true" title=" Cadastro " style="color:#000000;font-size:11px;font-style:normal ;font-family:Tahoma;" width="716px" height="242px" left="2px" top="320px" vflex="false" hflex="true" id="grpBoxDetalhe3" mold="3d">
<vlayout spacing="1px" width="712px" height="217px" vflex="true" hflex="true" id="FVBox13">
<hlayout valign="top" spacing="1px" width="728px" height="149px" hflex="true" id="FHBox13">
<vlayout spacing="1px" style="padding-right:7px;padding-left:5px;border-style:outset;background-color:Cream;border-color:#EDEDED;border-width:1px;" width="44px" height="139px" id="FVBox23">
<button dir="normal" orient="vertical" type="button" disabled="true" image="http://localhost:8400/images/6.png" style="color:#000000;font-size:11px;font-style:normal ;font-family:Tahoma;padding:0px;" width="30px" height="30px" left="1px" top="1px" id="btnNovoDetalhe3"/>
<button dir="normal" orient="vertical" type="button" disabled="true" image="http://localhost:8400/images/8.png" style="color:#000000;font-size:11px;font-style:normal ;font-family:Tahoma;padding:0px;" width="30px" height="30px" left="1px" top="32px" id="btnExcluirDetalhe3"/>
<button dir="normal" orient="vertical" type="button" disabled="true" image="http://localhost:8400/images/16.png" style="color:#000000;font-size:11px;font-style:normal ;font-family:Tahoma;padding:0px;" width="30px" height="30px" left="1px" top="63px" id="btnConfirmarDetalhe3"/>
<button dir="normal" orient="vertical" type="button" disabled="true" image="http://localhost:8400/images/9.png" style="color:#000000;font-size:11px;font-style:normal ;font-family:Tahoma;padding:0px;" width="30px" height="30px" left="1px" top="94px" id="btnCancelarDetalhe3"/>
</vlayout>
<listbox emptyMessage="Esta lista está vazia" oddRowSclass="z-listbox-odd" rows="0" pagingPosition="bottom" sizedByContent="true" context="uuid(rX8Qu1)" width="678px" height="138px" left="44px" top="0px" vflex="true" hflex="true" id="gridDetalhe3">
<listhead menupopup="none" sizable="true" visible="true">
<listheader width="80px" label="Id. Teste Categoria"/>
<listheader width="80px" label="Id. Teste Categoria1"/>
<listheader width="80px" label="Id. Teste Categoria2"/>
<listheader width="400px" label="Descrição"/>
</listhead>
</listbox>
</hlayout>
<tablelayout columns="2" style="padding:0px;" width="728px" height="63px" left="0px" top="150px" hflex="true" id="gridPanelDetalhe3">
<tablechildren rowspan="1" style="padding:0px;" width="145px" height="21px" id="gridPanelDetalhe3item00">
<label value="Id. Teste Categoria2" maxlength="0" style="color:#000000;font-size:11px;font-style:normal ;white-space:nowrap;font-family:Tahoma;float:right;" left="46px" top="1px" id="lbIdTesteCategoria23"/>
</tablechildren>
<tablechildren rowspan="1" style="padding:0px;" height="21px" hflex="true" id="gridPanelDetalhe3item01">
<longbox disabled="true" cols="11" maxlength="0" style="border-left-color:red;text-align:right;color:#000000;font-style:normal ;font-size:11px;font-family:Tahoma;border-left-width:3px;" width="80px" left="146px" top="1px" hflex="false" id="edIdTesteCategoria23"/>
</tablechildren>
<tablechildren rowspan="1" style="padding:0px;" width="145px" height="21px" id="gridPanelDetalhe3item10">
<label value="Descrição" maxlength="0" style="color:#000000;font-size:11px;font-style:normal ;white-space:nowrap;font-family:Tahoma;float:right;" left="100px" top="22px" id="lbDescricao3"/>
</tablechildren>
<tablechildren rowspan="1" style="padding:0px;" height="21px" hflex="true" id="gridPanelDetalhe3item11">
<textbox rows="1" type="text" disabled="true" maxlength="0" style="color:#000000;font-size:11px;font-style:normal ;font-family:Tahoma;" width="400px" left="146px" top="22px" hflex="false" id="edDescricao3"/>
</tablechildren>
<tablechildren rowspan="1" sclass="tfgridpanel-tc" id="gridPanelDetalhe3item20"/>
<tablechildren rowspan="1" sclass="tfgridpanel-tc" id="gridPanelDetalhe3item21"/>
</tablelayout>
</vlayout>
</groupbox>
</vlayout>
</groupbox>
</tabpanel>
</tabpanels>
<tabs>
<tab selected="true" label="Listagem" id="tabListagem"/>
<tab label="Cadastro" id="tabCadastro"/>
</tabs>
</tabbox>
</vlayout>
</window>
<!--</page>-->
<zscript>
<![CDATA[
void loadGrid() {
List items = new ArrayList();
for (int y = 0; y < 50; y++) {
Listitem item = new Listitem();
int detail = 1;
Listcell cell = new Listcell();
cell.setLabel(String.valueOf(y));
item.getChildren().add(cell);
Listcell cell = new Listcell();
cell.setLabel("descricao " + y);
item.getChildren().add(cell);
items.add(item);
}
Window w = (Window) ((Page)Executions.getCurrent()
.getDesktop().getPages().iterator()
.next()).getFellow("window", true);
Listbox gridPrincipal = w.getFellow("gridPrincipal", true);
gridPrincipal.getChildren().addAll(items);
}
]]>
</zscript>
</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");
}
}