Processing...

Suggested case list:

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

identify firefox or not in server side

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

Latest 10 Fiddles :

line-height breaks button alignement

1guest162.158.179.1142j3sh9qApr 6, 2020 9:47:11 AMlink

Autopaging vs PageSize

1guest162.158.94.124bs6vn2Apr 6, 2020 9:12:05 AMlink

Another new ZK fiddle

3rock210502162.158.179.541afp0iqApr 6, 2020 7:58:41 AMlink

Another new ZK fiddle

2rock210502162.158.179.541afp0iqApr 6, 2020 7:56:47 AMlink

Another new ZK fiddle

1rock210502162.158.179.541afp0iqApr 6, 2020 7:53:55 AMlink

Another new ZK fiddle

2rock210502162.158.179.542odmspbApr 6, 2020 7:52:55 AMlink

Another new ZK fiddle

1rock210502162.158.179.542odmspbApr 6, 2020 7:49:47 AMlink

uppercase textbox

2guest141.101.76.1302f0efq3Apr 6, 2020 6:05:07 AMlink

ZK-3516

1JamesChu162.158.178.811btfl4tApr 6, 2020 2:04:54 AMlink

PDF Viewer in ZK using Iframe

1guest141.101.69.1532ojq4irApr 5, 2020 10:03:06 PMlink

Combobox

2guest89.197.3.174q1rkhFeb 18, 2020 12:45:51 PMlink

resources

index.zulzul<zk> <window border="normal" title="hello" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('pkg$.IndexVM',arg=arg)"> <combobox placeholder="Enter Type" autodrop="true" model="@load(vm.itemList)" buttonVisible="false" value="@bind(vm.value)" onSelect="@command('select')"> <template name="model"> <comboitem label="@load(each.value) @converter(vm.comboConverter, item=each)" /> </template> </combobox> <separator/> <label value="@load(vm.value)"/> </window> </zk> IndexVM.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.bind.BindUtils; import org.zkoss.bind.annotation.Command; import org.zkoss.bind.annotation.GlobalCommand; import org.zkoss.bind.annotation.Init; import org.zkoss.bind.annotation.BindingParam; public class IndexVM { private String value; private ComboConverter comboConverter; private ListModelList<Item> itemList; @Init public void init(){ this.setItemList(new ListModelList<Item>()); Item opt1 = new Item(); opt1.setDisplay("Display Option 1"); opt1.setValue("Value Option 1"); this.getItemList().add(opt1); Item opt2 = new Item(); opt2.setDisplay("Option 2"); opt2.setValue("Value Option 2"); this.getItemList().add(opt2); Item opt3 = new Item(); opt3.setDisplay("Option 3"); opt3.setValue("Option 3"); this.getItemList().add(opt3); Item opt4 = new Item(); opt4.setDisplay("Option 4"); opt4.setValue("Option 4"); this.getItemList().add(opt4); Item opt5 = new Item(); opt5.setDisplay("Option 5"); opt5.setValue("Option 5"); this.getItemList().add(opt5); } @Command public void select(){ BindUtils.postNotifyChange(null,null,this,"value"); } public ComboConverter getComboConverter(){ this.setComboConverter(new ComboConverter()); return comboConverter; } public void setComboConverter(ComboConverter comboConverter) { this.comboConverter = comboConverter; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public ListModelList<Item> getItemList() { return itemList; } public void setItemList(ListModelList<Item> itemList) { this.itemList = itemList; } } Item.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 Item { private String display; private String value; public String getDisplay() { return display; } public void setDisplay(String display) { this.display = display; } public String getValue() { return value; } public void setValue(String display) { this.value = value; } } ComboConverter.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.bind.*; public class ComboConverter implements Converter { /** * @param val date to be converted * @param comp associated component * @param ctx bind context for associate Binding and extra parameter (e.g. format) * @return the converted String */ public Object coerceToUi(Object val, Component comp, BindContext ctx) { //user sets format in annotation of binding or args when calling binder.addPropertyBinding() Item item = (Item) ctx.getConverterArg("item"); if(item==null){ throw new NullPointerException("item attribute not found"); } String display = item.getDisplay(); return display; } public Object coerceToBean(Object val, Component comp, BindContext ctx) { Item item = (Item) ctx.getConverterArg("item"); if(item==null){ throw new NullPointerException("item attribute not found"); } String value = item.getValue(); return value; } }