Tuesday, September 21, 2010

Re: How to tell when a text box loses focus

Brett,

You are looking for the BlurHandler / onBlur.

HTH,
Chad

On Sep 21, 3:23 pm, Brett Thomas <brettptho...@gmail.com> wrote:
> 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