Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Lazy Loading Tree Component.
Hello, everyone. I`m trying to implement lazy loading of the elements on node Expand Events.
There is an issue with this.
So on expand event, I create new items for the expanded node using
HierarchicalContainer
method
addItem()
.
But this method calls
containerItemSetChange()
method of
AbstractSelect
class. There
itemIdMapper.removeAll()
is called. So Map is cleaned and all items of tree get new ids in map. When the answer from server comes to client side, it doesn`t know this new id , because it has previous id (of expanded node) so new items are not added and not rendered on client side.
Can Anyone help me with this problem ? Thank in advance.
Edition
Actually I also needed to change field
partialUpdate
to true, because at first server send all the content of tree to client side.