On Monday, January 30, 2012 8:51:51 AM UTC+1, Xybrek wrote:
>
> I am getting an error when I try to wrap a submit button with GWT:
>
> Caused by: java.lang.AssertionError: Child cannot be null
> at com.google.gwt.dom.client.Node$.isOrHasChild$(Node.java:278)
> at com.google.gwt.user.client.ui.Button.wrap(Button.java:55)
>
That means the argument to Button.wrap() is 'null' (debug 101: step into
the code; it's open source, so read the source!), i.e. in your case
Document.get().getElementById("submit") returns 'null'.
>
--
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/-/kfpbwteUkHoJ.
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.