0

Window doModal Problem! need help

asked 2012-05-24 03:46:23 +0800

xqforever gravatar image xqforever
6

updated 2012-05-24 03:59:01 +0800

I try to explain the problem with my poor english.
Here is the thing.
i use two pages :aaa.zul. bbb.zul
in page aaa.zul, i click a button ,

public void onClick$btn() throws SuspendNotAllowedException,
InterruptedException
{

Window window = (Window) Executions.createComponents("bbb.zul", null,
null);
window.doModal();
String a = "aaa";
System.out.println(a);
}

i want to deal things in bbb.zul so i want the main thrad stop at window.domodal() and wait until i close bbb.zul closeed.
but when i debug it , i found the main thread continue when it execute window.doModal() and then execute String a = "aaa";
System.out.println(a) . window bbb.zul shows when System.out.println(a) has been executed .

i want the main thread stop at window.doModal() and wait until i close bbb,zul . how can i do?

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2012-05-24 04:41:05 +0800

xqforever gravatar image xqforever
6

I have solve by myself
in zk.xml

you can add

<system-config>
<disable-event-thread>false</disable-event-thread>
</system-config>

link publish delete flag offensive edit

answered 2012-05-24 20:14:47 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

:-)

link publish delete flag offensive edit

answered 2012-05-24 20:33:38 +0800

Matze2 gravatar image Matze2
773 7

Or you pass a callback interface in your createComponents args and call it in the onClick handler of your OK/Submit/Confirm/Save/Whatever button.
ZK6 Messagebox does it in the same way.

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2012-05-24 03:46:23 +0800

Seen: 167 times

Last updated: May 24 '12

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