I have a simple host page for a GWT app with an input button like so:

<input id="Save" class="button" type="submit" name="Button"
value="Save" />

Why does the following not work:

InputElement save =
InputElement.as(RootPanel.get("Save").getElement());
save.click();

If I put a breakpoint I can see that the Save element was correctly
assigned but click never seems to work. Any onclick handler for that
button is never executed, and the form the button is in is never
posted, although if I click on the button manually it works fine.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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