I have Application where I have two windows. When I update data in another window(1) I want it to be also updated on other window(1). I have implemented mechanisms that lets me do that.
The actual problem is that when I update e.g. Label in window2 to correspond values in window1, window2 does not get repainted. I have tried calling requestRepaint() and requestRepaintAll() for window2, but they only mark components “dirty” and do not cause actual rendering. When I refresh browser window containing window2 Label is of course updated.
So how do I trigger actual rendering? Or refresh window? Or am I just trying to do wrong thing?
Briefly, a client can only be refreshed when it makes a request to the server, even if the corresponding server side state for its components would have changed. To make other clients update automatically when making a change in one client or in a background thread, you either need to make them poll the server regularly (Refresher or ProgressBar) or use a push mechanism (ICEPush).