-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi. Can I set in runtime a new value to library property: org.zkoss.zk.ui.processMask.enabled?
I try to do using the common way:
Library.setProperty("org.zkoss.zk.ui.processMask.enabled", "true");
without success. Only works changing in zk.xml.
Hi Andreas,
as the documentation states changes to this flag can be made in zk.xml.
Runtime changes have no effect, because this flag is evaluated only during javascript packaging for the cached wpd files.
I assume you don't want to flush the caches - impacting the performance negatively.
Instead you can set this flag at client side directly.
zk.processMask=true;
zk.processMask=false;
from java code:
Clients.evalJavaScript("zk.processMask=true;");
Clients.evalJavaScript("zk.processMask=false;");
This will have immediate effect for the next ajax request taking longer than the processing-prompt-delay (default 900ms).
Checkout this zkfiddle example: http://zkfiddle.org/sample/2aguncf/1-toggle-processing-mask
Questions? ;)
Robert
Asked: 2018-04-23 23:14:16 +0800
Seen: 7 times
Last updated: May 04 '18
[Announcement] ZK 8.5.1 is now available!
Highlight new release changes/new features in demo app
How can I make a button change its image by clicking on the same button?
Problems calling function 'sec:isAnyGranted' with zkspring 3.2 and Spring Security 4
webapp folder of ZK spring boot?
Package ZK Eclipse Tomcat Project For Deployment
AImage org.zkoss.zk.ui.UiException: java.io.FileNotFoundException