Based on an event, i invoke a long running task.
Before the task starts, i show a pop up to the user and when the task finishes, the pop up is hide.
Code:
final PopupPanel pp = HotelClientUtil.getUpdatingPopup();
pp.center();
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {
resetFilter();
pp.hide();
}
});
The problem is that the pop up is not shown even for a micro seconds.
As soon as i trigger the event, the page gets blocked till it completes the execution.
What i want is to make the pop up visible till the task continues.
What wrong i am doing here?
Deepak Singh
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment