Nested forms with Vaadin / display collection contents

I would like to display a complex Java Bean in Vaadin form so that the user can edit the bean. However, a Bean consists of simple properties (String, Integer, etc.), but also of a collection of another Bean (although this has only simple properties).

I like to know a table containing the simple properties of nested Beans in their columns. Each row displays one instance of a nested bean. Of course, there must be a way to add new lines (add to the collection) and delete lines (remove from the collection).

I did some research on how this can be achieved with Vaadin. However, without success. Is there some kind of model that solves this problem? What steps should be taken?

+4
source share
1 answer

Perhaps this example on nested Beans and sub-formats will help:

Book of Vaadin's Examples

In addition, this example looks like you need http://demo.vaadin.com/book-examples/book/?restartApplication#component.form.subform.nestedtable

+4
source

All Articles