-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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.
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
Asked: 2018-02-28 13:40:01 +0800
Seen: 26 times
Last updated: Mar 02 '18
[Smalltalk] Template Examples -Locker
No invisible modal window in class deriving Window [closed]
Update from ZK 8.0.2.2 to 8.5.0 (with ZK-Studio)
Popout ZK Tab to Browser [closed]
SCRIPT: Permission denied in IE11 and Edge
'Problems encountered while deleting resources' for Zk-Spring-Boot project
Popup with radiogroup not working? [closed]