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.
When and How to load/fill out data on a Form (CRUD)
I am making some CRUD Forms, but I can't figure it out WHEN load the comboBoxs with its respective data (like Province/State, Municipality, Town, and a lot more data that must be retrieve from database).
I don't want to load all that information when the Form is instantiated, just when Create or Edit event are trigged otherwise, it must remains empty.
How do u handle this?
You will need a lazy Container as data source for your ComboBox:
Have a look at the add-on viritin (https://vaadin.com/addon/viritin)
It has a LazyComboBox component to makes things easy for you:
https://github.com/viritin/viritin/blob/master/src/main/java/org/vaadin/viritin/fields/LazyComboBox.java