Sharing a List<String> between two vaadin components

114 views Asked by At

I am having a multi row single column table which is to be populated from a List<String>. And this List<String> is populated via a modal window and when ever there is an update in this List<String> the table has to be updated.

How do I achieve this through Vaadin?

Any pointers or examples on this would be greatly helpful.

Thanks

1

There are 1 answers

1
cfrick On

you could use the same container for both the field to edit and the table to display. be sure to either fire your refreshes manually (https://www.vaadin.com/api/com/vaadin/ui/Table.html#refreshRowCache()) or listen for them (https://www.vaadin.com/api/com/vaadin/data/Container.ItemSetChangeListener.html)