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.
Update UserForm
Hi,
I have a user-form wich includes a DateField and a ComboBox. The content which appears in the ComboBox depends on the Date entered in the dateField.
For generating the user-form I use the FormFieldFactory.
I thought about overriding the fillContainer-Method of the ComboBox in myField Factory. Something like this:
if (propertyId.equals(myClass.date)) {
DateField field = new DateField(caption);
return field;
}
if (propertyId.equals(myClass.property)) {
ComboBox field = new ComboBox(caption, MySecondClass.class,) {
@Override
protected void fillContainer(IndexedContainer container) {
[color=#fd2323] Code in here [/color]
super.fillContainer(container);
}
};
return field;
}
Anybody an idea how to do this?
How about just populating the selection component in date field value change listener?
Try using https://vaadin.com/directory#addon/customfield
Take a look at the adress field demo source