InlineDateField - new values are not saved

Hello!

I have an InlineDateField. First, I initialize it with some date/time. When the user changes and presses a certain button, the new value should be saved in the database.

I create the control with following code:


startDate = new InlineDateField(
		TM.get("eventeditingpanel.7-label-start"));

// Set the value of the PopupDateField to current date
startDate.setValue(new java.util.Date());

// Set the correct resolution
startDate.setResolution(InlineDateField.RESOLUTION_MIN);
startDate.setImmediate(true);
startDate.addListener(new ValueChangeListener() {
	private static final long serialVersionUID = 1L;

	@Override
	public void valueChange(final ValueChangeEvent aEvent) {
		LOGGER.debug("startDate.valueChange: aEvent"
				+ aEvent.getProperty() + ", value: "
				+ aEvent.getProperty().getValue()
				+ ", startDate.getValue(): " + startDate.getValue());

	}
});

When I select another time in the date field, the ValueChangeEvent event is fired.

But it contains the old time, not the new one (which I entered)!

When I retrieve the value of the date/time field using getValue it also contains the old value.

How can I fix this?

Thanks in advance

Dmitri

P. S.: I’m using Vaadin 6.4.0.

Hi!

If someone is interested: I solved the problem by upgrading to most recent version of Vaadin.

Best regards

Dmitri