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.
How to set the initial value to PopupDateField
Hi,
By the next code, PopupDateField does not show initial value. The field is a blank field.
PopupDateField pdf = new PopupDateField("Order Date", new Date());
pdf.setTabIndex(1);
pdf.setValue(new Date());
pdf.setResolution(PopupDateField.RESOLUTION_DAY);
pdf.setImmediate(true);
pdf.setRequired(true);
pdf.setDateFormat("yyyy//MM/dd");
It might be a basic question, but I can't solve it.
Could you get me some advice?
thanks.
Hi,
I've found it.
This field is set by the value of BeanItem. So pdf.setValue(new Date()) is rewritten.
I needed to set the initial value to the beanItem.
Sorry for bothering you.
Thanks.