[CLOSED] GXT 1.1.2: DateField does not fire Change Event
I am finding that DateField objects do not seem to fire change events when they are updated. I am trying to use change listeners to keep field values in sync with model values in a uniform way, but DateFields don't seem to want to cooperate.
Here is a simple example.
FormPanel fp = new FormPanel();
final DateField df = new DateField();
df.addListener(Events.Change, new Listener() {
public void handleEvent(FieldEvent p_event)
{
MessageBox.alert("Date Field Changed", df.getValue(), null);
}
});
The change event never fires when I render this guy. In addition, I have tried firing the change event myself from the setValue() method, but that seems to wreak havoc with the widget a bit. Not sure why, but I am looking at the internals now.
Is it possible to auto-blur the DateField when the picker fires a selected event?
Is it possible to auto-blur the DateField when the picker fires a selected event?
I can only find a way to focus another field, but it would be best if the field could be de-focused automatically.
This would allow the change event to fire, and also stop users accidentally typing in the field once they have selected a date.