As a follow up to this: DOJO handles this situation correctly. GWT's SuggestBox does not.
Try running this minimal DOJO example (in Firefox or Safari - i am using console.log) with the JavaScript console showing. Also, do a view source to see how i specified the change and blur handlers. Then (this is the key part) click on the middle widget (the date widget) then click on the calendar popup. Note: this does NOT trigger a lost focus event - which is a good thing because the date widget still has the focus. In other words, DOJO composite widgets (the date widget is a composite of a textbox and a popup) handle blur and change events correctly. Here is the link. http://www.smart-soft.com/downloads/dojoDemo/dojo-demo.html Now, try the same thing with gwt SuggestBox. Register a lostFocus listener. Then, type in an M. Click on Marsha. And notice that the lostFocus listener fires - even though the focus never left the suggest box. To summarize, it sounds like SuggestBox doesn't really support focus events on the SuggestBox but rather it supports focus events on one of SuggestBoes internal widgets (the TextBox). I suppose this isn't a bug since it is described that way in the docs. But it is awkward. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
