Invoking Value Change Event via JS on TextBox

63 views
Skip to first unread message

pragati

unread,
Jul 6, 2012, 9:00:12 AM7/6/12
to google-we...@googlegroups.com
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.

Thanks




Thomas Broyer

unread,
Jul 6, 2012, 9:02:19 AM7/6/12
to google-we...@googlegroups.com
The easiest, in pure JS, would be to simply dispatch a 'change' event on the <input>. 
Reply all
Reply to author
Forward
0 new messages