Tuesday, September 21, 2010

How to tell when a text box loses focus

Hey, basic question here that I can't find the answer to. Is there any way to do something to a TextBox when it loses focus in GWT 2.0?

The FocusListener interface, which has an onLostFocus method, was deprecated in favor of FocusHandler, which does not. Can't find anything comparable.

Use case: I want to submit a field to the server without a submit button. I don't want to do it after every character change, though, so can't just use addValueChangeHandler().

Thanks,
Brett

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment