Trouble with onSelect for Listbox on iphone

asked 2012-05-06 12:46:42 +0800

andij62 gravatar image andij62
303 1 7

Hi all,

onSelect-Event for Listbox is not fired on iphone in actual build 6.0.1. With ZK 6.0.1-FL CE (build: 2012022422) it works fine! Is it a bug in the new build?

Regards Andi

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-05-07 01:52:36 +0800

vincentjian gravatar image vincentjian
2245 6

updated 2012-05-07 01:53:06 +0800

Hi Andi,

I have tested the following sample with zk 6.0.1 and works fine on iPad.

<div apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('forum.ListboxVM')">
<listbox model="@bind(vm.model)" itemRenderer="@bind(vm.renderer)" onSelect='alert("select event")'>
        <listheader label="name"></listheader>

public class ListboxVM {

	private List<Item> list;
	private ListModelList<Item> listModel;
	private ListitemRenderer<Item> itemRenderer;
	public ListModelList<Item> getModel() {
		if(listModel== null) {
			listModel= new ListModelList<Item>(getAllItems());
		return listModel;
	public ListitemRenderer<Item> getRenderer() {
		if (itemRenderer == null) {
			itemRenderer = new ListitemRenderer<Item>() {
				public void render(Listitem litem, Item item, int index) throws Exception {
					new Listcell(item.getName()).setParent(litem);
		return itemRenderer;
	private List<Item> getAllItems() {
		list= new ArrayList<Item>();
		list.add(new Item("David"));
		list.add(new Item("Tom"));
		list.add(new Item("Tim"));
		return list;
	public class Item {
		private String name;
		public Item(String name) {
			this.name = name;
		public String getName() { return name; }
		public void setName(String name) { this.name = name; }

Can you provide reproducible sample?

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2012-05-06 12:46:42 +0800

Seen: 119 times

Last updated: May 07 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More