Я получаю сообщение об ошибке при попытке обернуть кнопку отправки 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)
HTML-код:
<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">
</form>
</div>
Java-код (GWT):
loginButton = Button.wrap(Document.get().getElementById("submit"));
Можно ли обернуть кнопку отправки?