Sunday, January 29, 2012

How to wrap a “submit button” with GWT?

I am getting an error when I try to wrap a submit button with GWT:

Caused by: java.lang.AssertionError: Child cannot be null
HTML Code:

<div style="display:none">
<form id="login_form" action="javascript:;">
<input id="username" type="text">
<input id="password" type="password">
<button type="button" id="submit" name="submit" value="Submit">
Java Code (GWT):

loginButton = Button.wrap(Document.get().getElementById("submit"));
Is there any way to wrap a submit button?

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment