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.