-
FEATURED COMPONENTS
First time here? Check out the FAQ!
How to implement asynchronous call in zk community edition ZK 9.6.0.2 in order to update data on the form in every 10 second.
If you want to get an event every 10s during which you can update the content of the page, consider a repeating timer: https://www.zkoss.org/wiki/ZKComponentReference/Essential_Components/Timer
Timer will generate an "onTimer" event on a period defined by the "delay" attribute. Remember to set both delay and repeats if you want an ongoing event: delay="10000" repeats="true" -> every 10s
Alternatively, you can consider server-push: https://www.zkoss.org/wiki/ZKDeveloper'sReference/Server_Push/Configuration CE edition has polling server-push available, which enables you to trigger updates from server-side. In the case you described, I'd still go with timer since you want to do periodic updates though. Server push use case is more along the line of "I want to update the client after an unknown period of time, or when something happens at server side."
Asked: 2023-05-03 20:29:52 +0800
Seen: 7 times
Last updated: May 09
bug with intboxes on mobile devices
zk keikai-how to add custom button/label to formulabar?
zk-keikai- update multiple cells parallel at same time asynchronously
zk-keikai-How to auto fit column width based on text
zk-keikai-ClipboardPateEvent-called twice
Reference a spring bean from VariableResolver