[CLOSED] GXT 1.1.2: DateField does not fire Change Event
[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.