0

doModal - event processing thread is disabled

asked 2009-03-30 06:24:53 +0800

FriedDust gravatar image FriedDust
33

Hello guys,

I cant seem to make my window modal. {win.setMode("modal") or win.doModal()}
it throws an exception which says, Event processing thread is disabled.

what shall I do?

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2009-03-30 07:45:14 +0800

flyworld gravatar image flyworld
155 3

Take a look the zk.xml and check weather the "<disable-event-thread/>" is marked.

link publish delete flag offensive edit

answered 2009-03-30 07:59:34 +0800

FriedDust gravatar image FriedDust
33

I've tried that but it doesnt work
<zk>
<system-config>
<disable-event-thread/>
</system-config>
</zk>

tried both enable-event-thread and disable-event-thread.

link publish delete flag offensive edit

answered 2009-03-30 08:55:46 +0800

flyworld gravatar image flyworld
155 3

can you provide you sample tests application ?

link publish delete flag offensive edit

answered 2009-03-30 09:07:30 +0800

FriedDust gravatar image FriedDust
33

public class Test extends Window
{
public Test()
{
this.setTitle("Date Picker");
this.setWidth("325px");
this.setHeight("310px");
this.setMode("modal");
this.setVisible(true);
}
}

link publish delete flag offensive edit

answered 2009-03-31 00:41:42 +0800

flyworld gravatar image flyworld
155 3

updated 2009-03-31 00:43:39 +0800

the doModel should be trigger by some event, like

onClick="win.doModal()"

take a look the Thread_Model

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: 2009-03-30 06:24:53 +0800

Seen: 328 times

Last updated: Mar 31 '09

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