Tree Component Without the use of Persistent Entities

Hello,

I would like to have a Tree component with fixed items (root, branches and leafs), that don’t come from a Entity Dataset.

Is it possible? How can I do that?

Thank you.

Hello, @claudio.montenegro

You can use Vaadin Tree and just add it into any layout in a screen controller. But you should unwrap container to add Vaadin component:

VBoxLayout container = ...;
com.vaadin.ui.Tree vTree = ...;

container.unwrap(CubaOrderedActionsLayout.class).addComponent(vTree);

Regards,
Daniil.

1 Like

Hello Daniil,

Very easy!!

Thank you!

Claudio