CellTree has a constructor that accepts a TreeModel. I cannot set the tree model using the setter.
I retrieve the data for the tree through an asynchronous rpc call, this call is triggered when a presenter is created that matches the view containing this tree, but this means that the view is also created without a tree model filled with the necessary data.
When the data returns, I set the node root to the model, but the model is already created without the root, so it does not receive the update ...
I went along this route because I want to better control the rendering of tree nodes.
Two possible solutions ...
Hold the view render until the selection returns, so when the tree is created, the model will have all the information. How to do it?
As soon as the data returns and is installed in the model, tell the tree to update ... How to do this?
source share