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

Listhead with flexing and percent causes incorrec flex value

1guest172.70.211.23hm1idvJul 3, 2023 9:43:25 AMlink

resources

index.zulzul<zk> <!-- <script><![CDATA[ /** * Purpose: prevent collapsed listhead with if using flex and percent width on headers * Based on version: 9.6.3 * Last update: 9.6.3 */ if(zk.version != '9.6.3'){ console.warn('This override script version compatibility was tested for ZK 9.6.3. If you are running a different version, please check this script compatibility '); } zk.afterLoad("zul.sel", function () { var _xListhead = {}; zk.override(zul.sel.Listhead.prototype, _xListhead, { afterChildrenFlex_: function afterChildrenFlex_(hwgt) { //hflex in HeaderWidget var wgt = this.parent, ebody = wgt.ebody, ehead = wgt.ehead, efoot = wgt.efoot, currentLeft = wgt._currentLeft; if (wgt) { if (wgt._cssflex && wgt.isChildrenFlex()) { var minWd = wgt._calcMinWds(), wds = minWd.wds, isFlex = false, emptyHead = true; // reset display ehead.style.display = ''; var tblWidth = 0, sizedByContent = wgt.isSizedByContent(); for (var i = 0, wd = -1, hwgt = this.firstChild; hwgt; hwgt = hwgt.nextSibling, i++) { var nhwgt = hwgt.$n(); if (hwgt._hflex == 'min' || !hwgt._nhflex && sizedByContent) wd = wds[i];else if (hwgt._width) wd = parseInt(hwgt._width);else if (hwgt._nhflex > 0) isFlex = true; if (!hwgt.isVisible()) nhwgt.style.display = 'none'; if (wd >= 0 && !hwgt._width.includes("%")) { nhwgt.style.flex = '0 0 ' + jq.px(wd); if (!isFlex) tblWidth += wd; wd = -1; //reset } //check empty head if (hwgt._width && hwgt._width.includes("%")) { nhwgt.style.width = hwgt._width; } //check empty head if (hwgt.getLabel() || hwgt.getImage() || hwgt.nChildren) emptyHead = false; } //set table width var hdtbl = wgt.eheadtbl, bdtbl = wgt.ebodytbl, fttbl = wgt.efoottbl, tblWidthPx = jq.px0(tblWidth); if (hdtbl) { hdtbl.style.width = isFlex ? '100%' : tblWidthPx; if (bdtbl) bdtbl.style.width = isFlex ? '100%' : tblWidthPx; if (fttbl) fttbl.style.width = isFlex ? '100%' : tblWidthPx; } //set body column/footer column width var bdfaker = wgt.ebdfaker, ftfaker = wgt.eftfaker, bdcol = bdfaker.firstChild, ftcol, width0 = wgt.$class.WIDTH0; if (ftfaker) ftcol = ftfaker.firstChild; wds = {}; for (var hwgt = this.firstChild; hwgt && bdcol; hwgt = hwgt.nextSibling) { wds[hwgt.uuid] = hwgt.$n().getBoundingClientRect().width; bdcol = bdcol.nextSibling; } bdcol = bdfaker.firstChild; for (var hwgt = this.firstChild, wd; hwgt && bdcol; hwgt = hwgt.nextSibling) { var wd = wds[hwgt.uuid], wdpx = jq.px0(wd); if (hwgt.isVisible() && wdpx !== undefined) { bdcol.style.width = wdpx; if (ftcol) ftcol.style.width = wdpx; } else { bdcol.style.width = width0; if (ftcol) ftcol.style.width = width0; } bdcol = bdcol.nextSibling; if (ftcol) ftcol = ftcol.nextSibling; } ehead.style.display = emptyHead ? 'none' : ''; // css flex doesn't need 'bar' style, because 'colgroup' is disabled. var bar = this.$n('bar'); if (bar && !bar.style.cssText) bar.style.display = 'none'; } else { wgt._adjFlexWd(); wgt._adjSpanWd(); //if there is span and shall span the column width for extra space // ZK-2772 Misaligned Grid columns if (wgt.frozen && !wgt._isAllWidths()) { wgt._calcSize(); // yes, we need to do it again. } // ZK-2551: need to restore scroll pos after flexs are fixed if (zk(ebody).hasHScroll() && currentLeft != ebody.scrollLeft) { ebody.scrollLeft = currentLeft; if (ehead) ehead.scrollLeft = currentLeft; if (efoot) efoot.scrollLeft = currentLeft; } } } } }); }); ]]></script> --> <div> <listbox hflex="1"> <listhead sizable="true" hflex="1"> <listheader style="min-width: 200px" hflex="1" label="foo 1"></listheader> <listheader width="35%" label="foo 1"> <textbox value="bar" hflex="1"/> </listheader> </listhead> </listbox> </div> </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"); } }