Processing...

Suggested case list:

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

identify firefox or not in server side

1TonyQ198.203.175.1751nv2qreDec 10, 2011 4:25:04 AMlink

ZK addThis integration

1TonyQ198.203.175.1751apl96jNov 5, 2011 4:12:50 AMlink

Latest 10 Fiddles :

Another new ZK fiddle

4guest115.254.63.503rsnu2qJul 23, 2019 3:15:35 PMlink

Another new ZK fiddle

3guest115.254.63.503rsnu2qJul 23, 2019 3:14:37 PMlink

Another new ZK fiddle

2guest115.254.63.503rsnu2qJul 23, 2019 3:13:58 PMlink

Another new ZK fiddle

1guest115.254.63.503rsnu2qJul 23, 2019 3:13:43 PMlink

Another new ZK fiddle

29guest116.68.96.203f7t904Jul 23, 2019 11:05:14 AMlink

Another new ZK fiddle

28guest116.68.96.203f7t904Jul 23, 2019 11:04:57 AMlink

Another new ZK fiddle

27guest116.68.96.203f7t904Jul 23, 2019 11:04:31 AMlink

Another new ZK fiddle

26guest116.68.96.203f7t904Jul 23, 2019 11:03:52 AMlink

Another new ZK fiddle

25guest116.68.96.203f7t904Jul 23, 2019 11:01:05 AMlink

Another new ZK fiddle

24guest116.68.96.203f7t904Jul 23, 2019 11:00:33 AMlink

Size Problem with Borderlayout

45guest36.226.200.151krllcjFeb 21, 2014 10:59:00 AMlink

resources

index.zulzul<zk> <borderlayout width="100%" apply="pkg$.MainController"> <north id="north" size="130px" border="none"> <div id="divNorth"> </div> </north> <west vflex="4" id="west" border="none" size="200px"> <div id="divWest" vflex="3"> </div> </west> <center vflex="4" flex="true" id="center" border="none"> <div id="divCenter" vflex="3" style="overflow: auto;"> </div> </center> <south vflex="min" flex="true" id="south" size="100px" border="none"> <div id="divSouth" vflex="min"> </div> </south> </borderlayout> </zk>MainController.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.*; import java.util.HashSet; import java.util.Set; public class MainController extends GenericForwardComposer{ North north; West west; Div divNorth; Div divWest; Div divSouth; Div divCenter; Include includeNorth; Include includeWest; Include includeCenter; EventListener menuEventListener; EventQueue menuEventQueue; public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); createComponents(); createEventListener(); subscribeEventListener(); } protected void createComponents() { createNorth(); createWest(); createSouth(); createCenter(); } protected void createNorth() { } protected void createSouth() { } protected void createWest() { includeWest = new Include(); includeWest.setId("includeWest"); includeWest.setSrc("west.zul"); includeWest.setParent(divWest); } protected void createCenter() { includeCenter = new Include(); includeCenter.setId("includeCenter"); includeCenter.setSrc("center.zul"); includeCenter.setParent(divCenter); includeCenter.setDynamicProperty(MainController.class.getCanonicalName(), this); } protected void createEventListener() { menuEventListener = new EventListener() { @Override public void onEvent(final Event event) throws Exception { handleMenuEvent(event); } }; } protected void subscribeEventListener() { menuEventQueue = EventQueues.lookup("menuEventQueue", EventQueues.DESKTOP, true); menuEventQueue.subscribe(menuEventListener); } protected void handleMenuEvent(final Event event) { MenuEntry menuEntry = null; try { menuEntry = (MenuEntry) event.getData(); } catch (final Exception exception) { return; } fireOnMenuChanged(menuEntry); } protected void fireOnMenuChanged(final MenuEntry menuEntry) { registry.onMenuChanged(menuEntry); } protected CenterController registry = null; public void register(CenterController registry) { this.registry = registry; } } west.zulzul<zk> <div id="containerDivWest" vflex="1" width="100%" apply="pkg$.WestController"> </div> </zk> center.zulzul<zk> <div id="containerDivCenter" vflex="1" height="100%" width="100%" apply="pkg$.CenterController"> </div> </zk> BigList.javajavaimport java.util.AbstractList; public class BigList extends AbstractList<Integer> { private int size; public BigList(int sz) { if (sz < 0) throw new IllegalArgumentException("Negative not allowed: " + sz); size = sz; } public int size() { return size; } public Integer get(int j) { return Integer.valueOf(j); } }CenterController.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 CenterController extends GenericForwardComposer { private Div containerDivCenter; private Include includeContent; public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); registerToMainController(); createComponent(); } protected void createComponent() { if (includeContent != null) { includeContent.detach(); } includeContent = new Include(); includeContent.setId("includeContent"); includeContent.setSrc("default.zul"); includeContent.setParent(containerDivCenter); } protected void redrawContent(final MenuEntry menuEntry) { if (includeContent != null) { includeContent.detach(); } includeContent = new Include(); includeContent.setId("includeContent"); includeContent.setSrc(menuEntry.getSrc()); includeContent.setParent(containerDivCenter); } protected void registerToMainController() { final MainController mainController = (MainController) execution.getAttribute(MainController.class.getCanonicalName()); mainController.register(this); } public void onMenuChanged(final MenuEntry menuEntry) { redrawContent(menuEntry); } } test1.zulzul<zk> <window border="none"> <zscript><![CDATA[ List items = new pkg$.BigList(1000); ]]></zscript> <listbox id="listbox" mold="paging" pageSize="50"> <listitem forEach="${items}"> <listcell label="${each}-1" /> <listcell label="${each}-2" /> <listcell label="${each}-3" /> <listcell label="${each}-4" /> </listitem> </listbox> </window> </zk> WestController.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.*; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.EventQueue; import org.zkoss.zk.ui.event.EventQueues; import org.zkoss.zk.ui.event.Events; import org.zkoss.zk.ui.util.GenericForwardComposer; import org.zkoss.zkmax.zul.Nav; import org.zkoss.zkmax.zul.Navbar; import org.zkoss.zkmax.zul.Navitem; import org.zkoss.zul.Div; public class WestController extends GenericForwardComposer{ Div containerDivWest; public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); createMenu(); } protected void createMenu() { final Navbar navbar = new Navbar(); navbar.setOrient("vertical"); navbar.setWidth("100%"); Navitem navItem1 = new Navitem(); navItem1.setLabel("Menu1"); navItem1.setParent(navbar); Navitem navItem2 = new Navitem(); navItem2.setLabel("Menu2"); navItem2.setParent(navbar); Nav subMenu = new Nav(); subMenu.setLabel("SubMenu1"); subMenu.setParent(navbar); Navitem navItem3 = new Navitem(); navItem3.setLabel("Menu3"); navItem3.setParent(subMenu); navItem3.setAttribute("MENU", MenuEntry.TEST1); navItem3.addEventListener(Events.ON_CLICK, createOnClickEventListener()); Navitem navItem4 = new Navitem(); navItem4.setLabel("Menu4"); navItem4.setParent(subMenu); navItem4.setAttribute("MENU", MenuEntry.TEST2); navItem4.addEventListener(Events.ON_CLICK, createOnClickEventListener()); navbar.setParent(containerDivWest); } protected EventListener createOnClickEventListener() { final EventListener menuEventListener = new EventListener() { @Override public void onEvent(final Event event) throws Exception { EventQueue menuEventQueue = null; try { menuEventQueue = EventQueues.lookup("menuEventQueue", EventQueues.DESKTOP, false); } catch (final Exception exception) { return; } if (menuEventQueue == null) { return; } if (menuEventQueue != null) { final Navitem target = (Navitem) event.getTarget(); if (target.hasAttribute("MENU")) { final MenuEntry menuEntry = (MenuEntry) target.getAttribute("MENU"); menuEventQueue.publish(new Event("onClickMenuEntry", target, menuEntry)); } } } }; return menuEventListener; } } MenuEntry.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 enum MenuEntry { TEST1("Menu2", "test1.zul"), TEST2("Menu2", "test2.zul"); private final String key; private final String src; MenuEntry(final String key, final String src) { this.key = key; this.src = src; } public String getKey() { return key; } public String getSrc() { return src; } } default.zulzul<zk> <window border="normal" title="hello"> <div>Welcome to ZK Fiddle , run it right now!</div> </window> </zk> test2.zulzul<zk> <window border="normal" title="hello"> <div>Welcome to ZK Fiddle , run it right now!</div> </window> </zk>