-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I want to replace the timeout window and message, like the error window.
How do I do this?
ZK 7.0.2, FF 29.0
File: zk.xml
<device-config>
<device-type>ajax</device-type>
<!-- An empty URL can cause the browser to reload the same URL -->
<timeout-uri>/timeout.zul</timeout-uri>
</device-config>
File: timeout.zul
<?page id="sessionTimeout" title=" Magelaan " cacheable="false"
language="xul/html" zscriptLanguage="Java"?>
<?meta content="text/html; charset=UTF-8" pageEncoding="UTF-8"?>
<!-- activate Bootstrap responsive layout -->
<?meta name="viewport" content="width=device-width, initial-scale=1.0"?>
<!-- auto redirect to root after XX seconds-->
<?meta http-equiv="refresh" content="5; url=./"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:w="http://www.zkoss.org/2005/zk/client"
xmlns:n="http://www.zkoss.org/2005/zk/native" xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
<style>
.body { padding: 0 0; /* 0 padding on top and bottom and 0 padding on right and left */
</style>
<!-- outer window with vertical scrollbar -->
<window width="100%" height="100%" border="none" sclass="outerwin" contentStyle="overflow:auto;">
<n:div class="jumbotron text-center">
<n:h2 style="color:blue;">Session Timeout</n:h2>
${labels.ox_Message_Info_Timeout}
<n:br />
<n:br />
<a class="btn btn-sm btn-default" label="${labels.ox_backToApplication}" href="/"></a>
</n:div>
</window>
</zk>
best Stephan
Is it possible to change the path of the file?
My error.zul is in
<location>/WEB-INF/sys/Error.zul</location>
but my Timeout.zul in
<timeout-uri>/Timeout.zul</timeout-uri>
If I put the Timeout.zul in the same folder, its not found (404).
Hi Ingo,
can be that i'm false. But in my opinion: If you have a timeout, that means the session and the zk session is timeout. So you cannot have access to pages in folders behind the 'root' path. So you must place the timeout.zul page in the root folder.
best Stephan
Asked: 2014-06-05 10:52:33 +0800
Seen: 37 times
Last updated: Jun 11 '14
I am also looking for the same.
Senthilchettyin ( 2014-06-05 10:59:11 +0800 )edit