-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all,
I have my DesktopCleanup class defined in zk.xml and the cleanup is correctly called when user closes the browser window. So far so good.
But when user refreshes the page, new desktop is created for him, but the old desktop is not destroyed and my cleanup method is not called.
Does anybody know how to enforce calling cleanup method even in this situation?
Thaks in advance!
Hi,mixgho
I try it in zk 363 demo
it works well
zk.xml
<listener> <description>MyDesktopCleanup</description> <listener-class> ctrl.MyDesktopCleanup </listener-class> </listener>
MyDesktopCleanup.java
package ctrl; import org.zkoss.zk.ui.Desktop; import org.zkoss.zk.ui.util.DesktopCleanup; public class MyDesktopCleanup implements DesktopCleanup{ @Override public void cleanup(Desktop arg0) throws Exception { System.out.println("clean"); } }
Asked: 2009-11-26 02:29:50 +0800
Seen: 404 times
Last updated: Nov 26 '09