0

SelectorComposer not receiving Events of TreeItems that are added with the TreeItemRenderer

asked 2012-08-10 14:54:16 +0800

laoshi gravatar image laoshi
24

Hi people,

I have a SelectorComposer which is applied to my Tree and has
a Listener for "onOpen" Events of Comboboxes that are in my Treeitems.
Besides that I have a TreeItemRender, that renders my Treeitems (including theses Comboboxes).

The Listener Method is invoked well on the Treeitems that are rendered on creation, but if I browse
deeper in the Tree and the Treeitems are rendered later on, the "onOpen" events of my Comboboxes
wont reach my Composer :-(

Any Idea how to fix this?

regards,
Mike

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-08-11 04:34:37 +0800

MontyPan gravatar image MontyPan
435 3
http://xitop.blogspot.com...

Hi Mike,

Can you provide problem code (put on Github/Google Code is better) and ZK version?

regards,
Monty Pan

link publish delete flag offensive edit

answered 2012-08-22 05:15:15 +0800

benbai gravatar image benbai
2228 6
http://www.zkoss.org

Hi Mike,

A "Composer" just working for a "Page", bind to something that generated by a fragment of java code is out of its scope.
Please try use addEventListener to listen to "onOpen" event in renderer.

Regards,
Ben

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

Follow

RSS

Stats

Asked: 2012-08-10 14:54:16 +0800

Seen: 98 times

Last updated: Aug 22 '12

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