0

listcell addAnnotation

asked 2019-04-23 12:34:18 +0800

xianxianly gravatar image xianxianly
1 1

updated 2019-04-26 14:31:05 +0800

cor3000 gravatar image cor3000
4531 2 7
ZK Team
Listcell listcell = new Listcell();

Map  onEditMap = new HashMap();

onEditMap.put("value", new String[] { "'tableEdit'" });

listcell.addAnnotation("onClick", "command", onEditMap);

when i was click this cell,the event cannot work。

delete flag offensive retag edit

Comments

can you please provide a complete running example, e.g. on http://zkfiddle.org

cor3000 ( 2019-04-26 14:37:45 +0800 )edit

<zk> <window border="normal" title="hello" vflex="true" hflex="true" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('pkg$.UserVM')"> <listbox vflex="true" hflex="true"> <listhead> <listheader label="ddd" sort="auto" /> <listheader label="dddd" sort="auto" /> </listhead>

xianxianly ( 2019-05-07 17:23:07 +0800 )edit

import 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.annotation.Command; import org.zkoss.zk.ui.select.annotation.Wire; import org.z

xianxianly ( 2019-05-07 17:23:20 +0800 )edit

your code got truncated, because comments have a limited length. please provide the complete code by editing your question or adding a new response

cor3000 ( 2019-05-07 17:51:00 +0800 )edit
Be the first one to answer this question!
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

Follow
2 followers

RSS

Stats

Asked: 2019-04-23 12:34:18 +0800

Seen: 5 times

Last updated: Apr 26

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