Im currently using vaadin 6.7.x and with the default popupDateField component, i set the resolution to to
PopupDateField.RESOLUTION_SEC
and this creates a dropdown fields for Hours, Minutes, Seconds and the am/pm values just below the calendar. When the user manually changes the day, month or year using the textfield, the pop up calendar shows these changes right away. However when the hour/minute/sec is changed using the text field, the dropdown values does not sync or get updated. is this a bug in vaadin? or does it have something to do with the date formatting that i am using?
here are some other details on the code:
public final static String REPORT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
. . .
public static PopupDateField createEndDateField() {
final PopupDateField dateField = createDateField(MessageResource.getLocalizedString("caption.report.endDate"));
Date date = new Date();
date = DateUtils.setHours(date, 23);
date = DateUtils.setMinutes(date, 59);
date =DateUtils.setSeconds(date, 59);
dateField.setValue(date);
return dateField;
}
private static PopupDateField createDateField(String caption) {
final PopupDateField pdf = new PopupDateField(caption);
pdf.setDateFormat(REPORT_DATE_FORMAT);
pdf.setResolution(PopupDateField.RESOLUTION_SEC);
pdf.setImmediate(true);
return pdf;
}