-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I did it like http://docs.zkoss.org/wiki/Performance_Tip#Reuse_Desktops
but the methods are never called? even not on page refresh.
is there maybe a bug in ZK5RC2 Enterprise ..or is the problem sitting in front of the PC? ;-)
the listener is parsed. but not used later.
anyone any idea?
Thanks,
Timo Goetze
ServerPlusPlus Ltd
zk.xml:
... <listener> <description>DesktopRecycle-Listener</description> <listener-class>com.spp.config.MyRecycle</listener-class> </listener> </zk>
and the class:
package com.spp.config; import org.zkoss.zk.ui.Desktop; public class MyRecycle extends org.zkoss.zkmax.ui.util.DesktopRecycle { protected boolean shallCache(Desktop desktop, String path, int cause) { System.out.println("Shall cache? " + desktop +", "+path+", cause: " + cause); return true; } protected boolean shallReuse(Desktop desktop, String path, int secElapsed) { System.out.println("Shall reuse? " + desktop +", "+path+", secs: " + secElapsed); return true; } }
Asked: 2009-12-18 02:52:33 +0800
Seen: 372 times
Last updated: Dec 18 '09