Tree unable to update

I have the following problem:

I create a MenuTree for coordination in the application.
If I click on an item in the tree, a view is showing up depending on the selected item.
In this view, i have the option to create a new child to the tree by typing a name and pressing a button.

The problem is, how can i update the tree to show the child i just added?

There is no option to refresh a Tree. I’ve try push, removing Parents and adding them again but it wont refresh until i reload the entire ui.

The Menutree is in the MyUI class and all the views are toggled with a navigator.

Please help me.

I assume you are using Vaadin Tree component and TreeDataProvider, see documentation here:

https://vaadin.com/docs/v8/framework/datamodel/datamodel-hierarchical.html

Updating data

When adding or removing items from the TreeData, you need to always notify the data provider that it should refresh its data. This can be done with the refreshAll method in the data provider.

Thanks it worked!
Didn’t thought about the provider.