The max-desktops-per-session Element"
m (correct highlight (via JWB)) |
|||
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
If you specify 2, then after you open the 3rd tab, then the corresponding desktop of the first tab is dropped. If you trigger an AU request to a server (e.g. clicking a button), you will see the error message like: | If you specify 2, then after you open the 3rd tab, then the corresponding desktop of the first tab is dropped. If you trigger an AU request to a server (e.g. clicking a button), you will see the error message like: | ||
− | < | + | <div style="width:600px;margin:auto; border:solid 2px; padding:5px"> |
+ | <code> | ||
The resource you request is no longer available: /index.zul (z_8nc). | The resource you request is no longer available: /index.zul (z_8nc). | ||
This is normally caused by timeout, or opening too many Web pages. | This is normally caused by timeout, or opening too many Web pages. | ||
− | You have to reload the page and try again.</ | + | You have to reload the page and try again.</code> |
− | + | </div> | |
'''Note''': If you use <javadoc>org.zkoss.zk.ui.impl.GlobalDesktopCacheProvider</javadoc>, then you have to make this number much larger since it means the maximum allowed number of desktops ''per system''. | '''Note''': If you use <javadoc>org.zkoss.zk.ui.impl.GlobalDesktopCacheProvider</javadoc>, then you have to make this number much larger since it means the maximum allowed number of desktops ''per system''. |
Latest revision as of 10:34, 19 January 2022
Syntax:
<max-desktops-per-session>a_number</max-desktops-per-session>
[Default: 15]
It specifies the maximum allowed number of desktops per session. A desktop represents a browser tab. In other words, this number limit the number of concurrent browser tab allowed per session.
A negative number means no limitation at all.
If you specify 2, then after you open the 3rd tab, then the corresponding desktop of the first tab is dropped. If you trigger an AU request to a server (e.g. clicking a button), you will see the error message like:
The resource you request is no longer available: /index.zul (z_8nc).
This is normally caused by timeout, or opening too many Web pages.
You have to reload the page and try again.
Note: If you use GlobalDesktopCacheProvider, then you have to make this number much larger since it means the maximum allowed number of desktops per system.
Version History
Version | Date | Content |
---|---|---|