If the form is in a ui.xml, why don't you put a ui:field on it (instead of 
id) and have uiBinder inject the FormElement into an @UiField of your Java 
class? (and then pass the FormElement ro your JSNI method instead of the 
getElementById)

But back to your actual issue with JSNI: use '$doc' instead of 'document'. 
GWT by default loads in a hidden iframe, so the 'document' is the iframe's 
doc, not the host page's one.

-- 
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