0

How to set TimeoutURI in java ,with zk-bin-3.6.3-FL-2009-10-23.zip

asked 2009-10-30 07:56:02 +0800

evpole gravatar image evpole
481 2

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.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2013-05-28 11:41:46 +0800

dis gravatar image dis flag of Switzerland
140 4

Hi

Did you find a solution? I have the same problem.

Depending on the user's device (smart phone, tablet, PC) I would like to have a different timeout page.

Thank you, Dieter

link publish delete flag offensive edit

answered 2013-05-28 14:02:27 +0800

psingh gravatar image psingh flag of India
963 8

Below link may be helpful for you. http://books.zkoss.org/wiki/ZKDeveloper'sReference/UIPatterns/SessionTimeout_Management

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: 2009-10-30 07:56:02 +0800

Seen: 223 times

Last updated: May 28 '13

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