Monday, June 5, 2017

How do you call JS oninput event from a GWT textfield

Hi all,

I am pretty new to GWT and javascript.  The application is GWT and there is a textbox that needs to handle the following:
  • drag and drop text
  • cutting with the mouse
so the button used to save the information becomes enabled.

I have read and found GWT doesn't not handle the above items very well but you might be able to call JavaScript input events from within a GWT application.

The part I need help with  is how to call and use Javascripts oninput within the GWT textbox.


private TextBox textBox;

this.textBox = new TextBox();

textBox.addChangeHandler(new ChangeHandler() {
public native void onInputEvent(Widget sender)  /*-{
object.oninput = function() {Event};

Any help would be greatly appreciated.

Thank you,

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment