I want to execute some code when a date is selected using the Datepicker widget that is packaged with the GWT Query UI plug-in.
My attempt is below. The widget appears on the screen, and is apparently operational; but the callback function does not fire. Can you see where I have gone wrong?
$("#pick").as(Ui).datepicker().bind(Datepicker.Event.onSelect, new Function() {
public boolean f(Event e, Object data) {
Window.alert("Date selected");
return true;
}
});