On Friday, July 6, 2012 3:00:12 PM UTC+2, pragati wrote:
>
> I have a requirement where via javascript, a value is copied into the GWT 
> TextBox widget 
> and the Value Change Event should get fired so that i know i have to do 
> something.
>
> Is there a way to achieve this?
> It works via JSNI, which actually does a call to TextBox.setValue(value, 
> true) 
> But i dont intend to provide an JSNI but achieve it with an JS written to 
> invoke this event on the GWT TextBox widget.
>

The easiest, in pure JS, would be to simply dispatch a 'change' event on 
the <input>. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/G5K0ohdzPcsJ.
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.

Reply via email to