0

Change Timeout Message/Window

asked 2014-06-05 10:52:33 +0800

IngoB gravatar image IngoB flag of Germany
256 6

Hi,

I want to replace the timeout window and message, like the error window.

image description

How do I do this?

ZK 7.0.2, FF 29.0

delete flag offensive retag edit

Comments

I am also looking for the same.

Senthilchettyin ( 2014-06-05 10:59:11 +0800 )edit

4 Answers

Sort by ยป oldest newest most voted
2

answered 2014-06-05 11:52:14 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2014-06-05 11:57:46 +0800

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

link publish delete flag offensive edit

Comments

Thank you very much!

IngoB ( 2014-06-05 12:29:04 +0800 )edit
0

answered 2014-06-05 12:53:29 +0800

IngoB gravatar image IngoB flag of Germany
256 6

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).

link publish delete flag offensive edit
0

answered 2014-06-06 16:08:58 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

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

link publish delete flag offensive edit
0

answered 2014-06-11 06:49:53 +0800

cor3000 gravatar image cor3000
6280 2 7

just in case: the related documentation about timeout handling and error handling

Robert

link publish delete flag offensive edit
Your answer
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
2 followers

RSS

Stats

Asked: 2014-06-05 10:52:33 +0800

Seen: 37 times

Last updated: Jun 11 '14

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