-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I prefer to set TimeoutURI in the servelet which loading my webapp instead of deeling with zk.xml.
in zk 3.6.2, I do it like this:
Devices.setTimeoutURI("ajax", "/err/timeout.html");
but in zk 3.6.3, this was deprecated.
it was replaced by :
configuration.setTimeoutURI("ajax", "/err/timeout.html",0);
but how could I got the configuration object ?
use Sessions.getCurrent().getWebApp().getConfiguration() ? no , there's no Session initiated in the app loader class.
use Desktop.getConfiguration() ? neighter, there's no desktop initiated yet.
then .... I got confused.
Below link may be helpful for you. http://books.zkoss.org/wiki/ZKDeveloper'sReference/UIPatterns/SessionTimeout_Management
Asked: 2009-10-30 07:56:02 +0800
Seen: 223 times
Last updated: May 28 '13