|
|
Re: [Neon] Client polling [message #1722171 is a reply to message #1722054] |
Wed, 03 February 2016 08:51 |
|
A disabled poller may be the problem, but I don't think it's likely because the poller is enabled by default.
I assume you don't update the model in the model thread.
Only the model thread is allowed to update the model.
This was true for Mars and is still true for Neon.
So if you do some work in a worker thread, you have to synchronize with the model thread again.
Jobs.schedule(new IRunnable() {
@Override
public void run() throws Exception {
// load data here (e.g. call a service)
ModelJobs.schedule(new IRunnable() {
@Override
public void run() throws Exception {
// do model stuff here (e.g. replace rows in a table)
}
}, ModelJobs.newInput(ClientRunContexts.copyCurrent()));
}
}, Jobs.newInput().withRunContext(ClientRunContexts.copyCurrent()));
|
|
|
|
Powered by
FUDForum. Page generated in 0.03821 seconds