Ext GWT 3 ComboBox not firing ValueChangeEvent

Mar 17, 2012   #extgwt  #ui  #java 

In the current beta version of Ext GWT 3 (beta4), a ComboBox does not fire a ValueChangeEvent immediately after a value is selected. The event is only fired when the ComboBox loses its focus or the return key is pressed inside the ComboBox.

To fire the ValueChangeEvent immediately upon selection, you can add a CollapseHandler as a workaround:

combobox.addCollapseHandler(new CollapseHandler() {
	public void onCollapse(CollapseEvent event) {
		combobox.setValue(combobox.getCurrentValue(), true);