1

Custom- Session TimeOut Message [closed]

asked 2018-02-28 13:40:01 +0800

kd16 gravatar image kd16 flag of India
23 4

updated 2018-03-02 12:38:56 +0800

hswain gravatar image hswain flag of India
1763 3 10
http://corejavaexample.bl...

I am trying to change Title of Default session timeout Popup. It shows ZK on top. I made custom timeout Zul. But when Session times out, Custom timeout.zul does come as Modal Window and it detaches previous screen and URL redirected to /timeout.zul . All I want to do is change title on Default Session Timeout window. I have uploaded images in below link.

image description image description

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by cor3000
close date 2018-03-06 21:18:49

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-03-02 14:47:29 +0800

cor3000 gravatar image cor3000
4293 1 7
ZK Team

updated 2018-03-02 15:35:48 +0800

Here the related code that displays the configured error message: https://github.com/zkoss/zk/blob/v8.5.0/zk/src/archive/web/js/zk/au.js#L1129

As you can see it calls jq.alert() without setting a title explicitely and uses the default instead - which is the appName. This can be configured in your zk.xml with the preference: org.zkoss.zk.ui.WebApp.name or by calling:

Webapps.getCurrent().setAppName("My Special App")

For custom behavior you can also override this method or provide a timeout script.

Robert

link publish delete flag offensive edit

Comments

Thank you Robert. I will look into it. @cor3000

kd16 ( 2018-03-02 15:15:03 +0800 )edit

It worked fine. Thanks a Lot.

kd16 ( 2018-03-06 16:14:07 +0800 )edit

good news! much appreciated

cor3000 ( 2018-03-06 21:18:34 +0800 )edit

Question tools

Follow
1 follower

RSS

Stats

Asked: 2018-02-28 13:40:01 +0800

Seen: 19 times

Last updated: Mar 02

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