dialog cause new component can't be showed.
I try to do the followings:
1) add list A to a form and display it.
2) after 10 seconds, show a wait dialog for a moment and close it.
3) remove list A, and add new list B.
The problem is, instead of B is displayed, List A is still on the screen
until I click on the screen. After many attempts, I found that if I remove
List A before showing the dialog, the problem is solved.
But I can't change the code like this because when the dialog is showed,
a thread will retrieve data from the internet and determine whether list A
or list B is showed. Any suggestion to solve this problem?