Hi
I add a dialog of confirm window before start a background thread.
when I clicked ‘ok’ button and closed the dialog window, thread finished, but the UI(table content)
isn’t refreshed.
if I remove the dialog of confirm window, it will works fine.
codes like this:
final ConfirmWindow _dial = new ConfirmWindow("Deleting Volume ["+volume.getName()+"]
",
“Deleting volume will erase all information about the volume. Do you
want to continue?”);
getUI().addWindow(_dial);
_dial.addCloseListener(new CloseListener() {
@Override
public void windowClose(CloseEvent e) {
if (!_dial.isYes()) {
return;
}
new Thread() {
@Override
public void run() {
AppData.getDataModel().deleteVolume(volume);
}
}.start();
}
});
((DashboardUI)(getUI())).showView("/volumes");
I have tried use table.getUI().access() method, but throws NUllPointException.
How can I resolve the issue?
Thanks in advance
lx.