Hello,
I have a Label and a InlineDateField. Both components have the same ObjectProperty as their PropertyDataSource.
When I change the date value using the InlineDateField component the Label changes the value shown correctly.
BUT, when I manually change the date after a Button click using the ObjectProperty only the InlineDateField is updated, the Label does not do it.
I have set both components to Immediate(true), and I have even manually markAsDirty each component.
Anyone can explain me why only the InlineDateField is updated. Why the label is not updated? How can I fix this?
date = new Date();
final Property<Date> property = new ObjectProperty<Date>(date);
label_1.setPropertyDataSource(property);
label_1.setImmediate(true);
inlineDateField_1.setPropertyDataSource(property);
inlineDateField_1.setImmediate(true);
button_1.addClickListener(new ClickListener() {
private static final long serialVersionUID = 1L;
@Override
public void buttonClick(ClickEvent event) {
property.getValue().setYear(10);
inlineDateField_1.markAsDirty();
label_1.markAsDirty();
}
});