0

org.zkoss.zkmax.zk.ui.util.DesktopRecycle does not work

asked 2009-12-18 02:52:33 +0800

timo18146 gravatar image timo18146
189

updated 2009-12-18 02:52:55 +0800

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;
  }
}

delete flag offensive retag edit
Be the first one to reply this discussion!
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: 2009-12-18 02:52:33 +0800

Seen: 372 times

Last updated: Dec 18 '09

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