0

Update messages on long operation

asked 2017-05-06 21:27:57 +0800

psinalberth gravatar image psinalberth
30 3

Hi,

I'd like to implement a long operation on my zul, because I have an operation that lasts a few seconds. I'm using MVVM so I'd wanted to invoke Clients.showBusy and update the messages like 'Starting...', 'Fetching data...', 'Almost finished...' until the operation is finished, disabling any user interaction during this time.

Now when I click the button to do that, the 'Processing...' message appears and the page components are still enabled to interact. I've seen some examples using a timer and Thread.sleep() on ZK Fiddle but I couldn't get it.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-05-07 14:48:51 +0800

Darksu gravatar image Darksu
1976 1 4

Hello psinalberth,

A really nice article where you can get some ideas is the following:

https://www.zkoss.org/wiki/SmallTalks/2015/January/SimplifyLongOperationHandlings

If you need more assistance, please let me know.

Best,

Darksu

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
1 follower

RSS

Stats

Asked: 2017-05-06 21:27:57 +0800

Seen: 26 times

Last updated: May 07

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