Run code after closing a dialog

asked 2013-03-24 21:20:23 +0800

siarheinavatski gravatar image siarheinavatski
3 1

How to run some code (that operation takes a few seconds) after closing a dialog. If I perform code inside event listener then dialog still opened

Messagebox.show("message", "title", Messagebox.OK | Messagebox.CANCEL, new EventListener<Event>() {
public void onEvent(Event evt) throws InterruptedException {
    if (Button.OK.event.equals(evt.getName())) {

maybe some callback to main thread exists in ZK ?

delete flag offensive retag edit


2sjoshi sorry, you wrote "See this Stackoverflow FOrum..." but I can't reply directly to you answer :) Sorry, but I don't understand how that example can help for me? I made example with my usecase http://zkfiddle.org/sample/2ouiipu/1-Another-new-ZK-fiddle

siarheinavatski ( 2013-03-25 21:03:29 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-03-25 04:30:02 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8

See this Stackoverflow FOrum it will resolved your issue..

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

1 follower



Asked: 2013-03-24 21:20:23 +0800

Seen: 38 times

Last updated: Mar 25 '13

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