Vaadin: Are there two possible filtered views of the same container?

I have data in a Vaadin 7 container that needs to be displayed in two Tree widgets. A filter must be applied in one of the trees (not all nodes are shown). The other tree should display the full container. If a change is made in one tree (changing the parent relationship of a node, changing properties), the other should reflect it.

My idea was to use the same container supporting both trees, but add the Filterable decorator to one container before adding it to the second tree. But I couldn't find such a decorator. Did I miss this?

Is there any other approach? I could have two separate containers for both trees, but then they need to swap all modifications. How do I do the wiring for this?

PS: I have already asked this question on the Vaadin forum but did not receive an answer.

+3


source to share





All Articles