I have a GWT cell tree that I use to display the file structure from CMS. I am using AsyncDataProvider , which loads data from a custom RPC class that I created. I also have a Web Socket system that will broadcast events (create, rename, move, delete, etc.) from other clients also working on the system.
What I'm trying to circle around me is when I receive one of these events, how do I correctly update my cell tree?
I believe that this problem would be similar to the fact that I had two instances of my cell tree on the page that represent the same data on the server side and want to make sure that when the user updates them and the other updates through using EventBus .
I feel it should be pretty simple, but I spent about 6 hours without it. My code is below:
NOTE. I do not use RequestFactory, although it may look like it is my custom RPC environment. In addition, FileEntity is simply a representation of a file having a name accessible by getName() .
private void drawTree() {
source share