PDA

View Full Version : TextButton.setIcon() prevents SelectEvent



sws
14 Jun 2016, 7:51 PM
It seems that calling TextButton.setIcon() will prevent an impending SelectEvent from firing.

Specifically, I have a form that changes the icon of a button during a ValueChangeEvent from the fields on the form. If the ValueChangeEvent was triggered by clicking the button in question then the SelectEvent is not fired.

I have reproduced the error in a learning project. See TextButtonSetIconStopsSelectEvent.java
(https://subversion.assembla.com/svn/freshcode_public/learn/gwt/src/main/java/biz/freshcode/learn/gwt2/mod2/client/bug/TextButtonSetIconStopsSelectEvent.java)

Rough instructions for running learning project:

SVN check out https://subversion.assembla.com/svn/freshcode_public/learn/gwt
Run Maven goal 'tomcat7:run-war'
Load page http://localhost:8086
Login with 'bruce' / 'bruce'
Navigate to Mod2 | Bug | Set Icon Stops Select Event


I am using GXT 4.0.1 and the behaviour is apparent on FireFox 47.0 and Chromium 50.0.2661.102 (Running on Ubuntu 14.04 64-bit).