-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I have a window with some charts which data must be updated every second. In the same wnidow user can interact, there is a listbox to change the data origin, buttons that opens windows.... My problem is that as window is updated every second, it interferes with user interaction and it is very difficult to do anything.
How can I solve it? To update data every second I use Application event queue. So, at the moment when I subscribe the event I tried to tell it that it is asynchronous, but when I tried to update beans with BindUtils.postNotifyChange(null, null, this, "*"); it says that the thread is not in an execution.
I have no idea of how to solve it. Anyone can help me??
Thank you!
From what I understand, you are trying to do an postNotifyChange from your eventQueue?
Better use an Global-command from your eventqueue to reach all the VM's. Then you can notifyChange in each VM. (@Notifychange works also on global-commands) If you use 1 evenQueue in the application scope, the best is register your vm also in the application scope.
Now do you use 1 eventQueue for all your vm's or for each session an other?
Can you post the code of your eventqueue(all and where)?
Greetz chill.
Asked: 2014-04-15 09:12:24 +0800
Seen: 16 times
Last updated: Apr 15 '14