0

listen component detached

asked 2010-11-28 20:57:45 +0800

aktejo gravatar image aktejo
155 3

How can we listen when a component is detached from desktop,
can we use unbind_ (client side)
what kind of event triggered on server side to handle this.

Tq all

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2010-11-30 06:45:50 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

updated 2010-11-30 06:46:29 +0800

Hi aktejo,
You can register UiLifeCycle listener

link publish delete flag offensive edit

answered 2010-12-01 21:29:46 +0800

aktejo gravatar image aktejo
155 3

well,. I can't understand how to use it in my component,. mind to give some sample ?

link publish delete flag offensive edit

answered 2010-12-02 05:18:01 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

You have to create a class and implement org.zkoss.zk.ui.util.UiLifeCycle
then sets your zk.xml with the class

<zk>
    <listener>
        <listener-class>my.MyUiLifeCycle</listener-class>
   </listener>
</zk>

it will invoke afterComponentDetached after each component detach.

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: 2010-11-28 20:57:45 +0800

Seen: 362 times

Last updated: Dec 02 '10

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