0

zkoss timeout

asked 2008-12-18 23:53:09 +0800

hello2222 gravatar image hello2222
103 3

my application always timeout after a very long time. It shows "The resource you request is no longer available: ga2t.
This is normally caused by timeout, or opening too many Web pages.
You have to reload the page and try again." and "redraw", "close" button on that popup.

I have already set the time out in zk.xml file: " <desktop-config>
<desktop-timeout>-1</desktop-timeout>
</desktop-config>"

Any other way to avoid this???

delete flag offensive retag edit

14 Replies

Sort by ยป oldest newest

answered 2008-12-21 21:24:18 +0800

hello2222 gravatar image hello2222
103 3

Any1 can help?

link publish delete flag offensive edit

answered 2008-12-22 01:14:22 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

you also need to setup 'session-timeout' (http://www.zkoss.org/doc/devref/ch08s01s08.html)
and
I also saw this "opening too many Web pages", have you setup some thing like max-desktops-per-session in zk.xml. the default value is 10 in older version and 15 in least version.

link publish delete flag offensive edit

answered 2008-12-22 05:57:59 +0800

evpole gravatar image evpole
481 2

I guess that you're desinging your application.
when you changed one source in you desinger content, the seesion becomes time out.

-------------------
another question I would like to ask:when I pressed the redraw button in the propt,It dosen't redraw. It shows another same propt. how does this happen ?
and the propt is localized (in Chinese),but the button shows English still.

link publish delete flag offensive edit

answered 2008-12-24 00:59:20 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

evpole,
I don't understand your problem, could you describe more ?

link publish delete flag offensive edit

answered 2008-12-28 08:43:11 +0800

evpole gravatar image evpole
481 2

updated 2008-12-28 08:44:13 +0800

I mean I've found that the redraw button dosen't work correctly.

when i press the redraw button,the page dosen't redraw at all.

and another thing is that the message is localized in Chinese,but the text of the button dosen't.

link publish delete flag offensive edit

answered 2008-12-29 01:04:51 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

updated 2008-12-29 06:11:40 +0800

still unknow what do you mean (a redraw button?).
any way, the 'DEFAULT' i18n ('create by a EL') is bound when the page initial.
so, if click a button to change localization then load a page, then the result should right.
however component which was loaded before you click (not in new page) will not reload the i18n message.

link publish delete flag offensive edit

answered 2008-12-29 02:47:38 +0800

evpole gravatar image evpole
481 2

Thank you very much.
please execuse my poor English.

link publish delete flag offensive edit

answered 2008-12-29 06:14:59 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

evpole,
you need to describe more information about your requirement, show some code for example, don't let us guess it.

link publish delete flag offensive edit

answered 2008-12-29 09:13:37 +0800

evpole gravatar image evpole
481 2

Thank you for your warm-heartedness and paying patience on my question.
I appologize that my English is so poor to show it clearly,but I'll try.

It has nothing to do with codes.
I mean :
here, I have a page, and if the session is time-out,a message will be shown like this:

---------------------------------------------------------------------------------------
You have to reload the page and try again." and "redraw", "close" button on that popup.
-----------------------------------------------------------------------------------------
and under the message , there're two button called "redraw" and "close".

here, I have two quest:
1.if I press "close" button, the message is closed. that's ok. but when I press the "redraw" button,the mesage-box disappeared and then a new messagebox which takes the same look at the one above is shown.If I press "redraw" every time,a message-box was shown every time.I want to know what's the function does the "redraw" button has ?

2.The message can be locallized.here, I can see the message shown in Chinese (automaticly localized),but the 2 buttons doesn't.

I don't know whether I've show it clearly.

link publish delete flag offensive edit

answered 2009-01-02 15:59:23 +0800

dastultz gravatar image dastultz
797 9

I think I know what you mean. I couldn't figure it out either. I added this to zk.xml:

<!-- empty timeout url causes page reload which should then go to login page -->
<device-config>
	<device-type>ajax</device-type>    
	<timeout-uri></timeout-uri>    
</device-config>

It's not the ideal solution. I haven't gotten around to creating a page that states the timeout occurred.

/Daryl

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: 2008-12-18 23:53:09 +0800

Seen: 1,556 times

Last updated: Jun 01 '12

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