hello,
here is the sample code:
My UI subclass has an @Push annotation:
@SuppressWarnings(“serial”)
@Component
@Scope(“prototype”)
@Theme(“custom”)
@Push(transport = Transport.STREAMING)
@Widgetset(“…”)
@PreserveOnRefresh
public class CasePortalApplication extends UI {
I have a worker thread that calls executeDeletion():
logger.debug("Execute deletion");
new Thread(){
@Override
public void run() {
executeDeletion();
}
}.start();
logger.debug("Deletion executed");
and executeDeletion does a long running job and then displays a notification box:
private void executeDeletion()
{
// do long-running operation here!
casePortalApplication.access(new Runnable() {
@Override
public void run()
{
notifier.showNotification(message);
}
});
}
But the notification is not displayed (without the background thread and UI.access this did work fine).
There is no exception in the log.
Any ideas? (Tomorrow I will try to call UI.push() explicitly)
Thanks and Best Regards,
Felix