-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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???
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.
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.
evpole,
I don't understand your problem, could you describe more ?
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.
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.
evpole,
you need to describe more information about your requirement, show some code for example, don't let us guess it.
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.
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
Asked: 2008-12-18 23:53:09 +0800
Seen: 1,556 times
Last updated: Jun 01 '12