Java GWT UiBinder HTML未显示

Java GWT UiBinder HTML未显示,java,gwt,binding,Java,Gwt,Binding,在我的第一个GWT项目上工作,在UiBinder上遇到了一些问题。当我加载模块时,甚至没有显示HTML,我只看到一个空白页面。 有人知道为什么吗?我漏掉了什么 我还没有掌握面板的概念,RootPanel就是ScrollPanel吗?或者主面板,因为我给了它一个标识符 编辑:我遇到错误:此面板不支持无参数添加。但错误并没有说明是哪一个。关于如何获得我想要的布局有什么建议吗 提前谢谢 UiBinder类DoraTheExplora.ui.xml: <g:ScrollPanel>

在我的第一个GWT项目上工作,在UiBinder上遇到了一些问题。当我加载模块时,甚至没有显示HTML,我只看到一个空白页面。 有人知道为什么吗?我漏掉了什么

我还没有掌握面板的概念,RootPanel就是ScrollPanel吗?或者主面板,因为我给了它一个标识符

编辑:我遇到错误:此面板不支持无参数添加。但错误并没有说明是哪一个。关于如何获得我想要的布局有什么建议吗

提前谢谢

UiBinder类DoraTheExplora.ui.xml:

<g:ScrollPanel>
    <g:VerticalPanel ui:field="mainPanel">
    <!-- Header of Dora website -->
    <g:HorizontalPanel ui:field="headerPanel">
    <g:HTMLPanel styleName="{resource.style.siteHeader}">
        Welcome to Dora!
    </g:HTMLPanel>
...
Dorathea类:

...
public class DoraTheExplora extends Composite {

// UIBinder instance.
@UiTemplate("DoraTheExplora.ui.xml")
interface DoraTheExploraUiBinder extends UiBinder<Widget, DoraTheExplora> {
}
private static DoraTheExploraUiBinder uiBinder = GWT.create(DoraTheExploraUiBinder.class);

@UiField
VerticalPanel mainPanel;
@UiField
HorizontalPanel headerPanel;
...

public DoraTheExplora() {
    initWidget(uiBinder.createAndBindUi(this));
...
    }
}
。。。
公共类dorathea扩展了复合{
//UIBinder实例。
@UiTemplate(“DoraTheExplora.ui.xml”)
接口DoratherExploreAuiBinder扩展了UiBinder{
}
私有静态DoraTheExploraUiBinder uiBinder=GWT.create(DoraTheExploraUiBinder.class);
@尤菲尔德
垂直面板主面板;
@尤菲尔德
水平面板头部面板;
...
公共Dorathea(){
initWidget(uiBinder.createAndBindUi(this));
...
}
}

我想出来了。我在ui.xml文件中嵌套了一个FlexTable,它抛出了no args错误

我认为这与根面板有关,但我错了。如果有人还想向我解释根面板的概念,我将不胜感激

...
public class DoraTheExplora extends Composite {

// UIBinder instance.
@UiTemplate("DoraTheExplora.ui.xml")
interface DoraTheExploraUiBinder extends UiBinder<Widget, DoraTheExplora> {
}
private static DoraTheExploraUiBinder uiBinder = GWT.create(DoraTheExploraUiBinder.class);

@UiField
VerticalPanel mainPanel;
@UiField
HorizontalPanel headerPanel;
...

public DoraTheExplora() {
    initWidget(uiBinder.createAndBindUi(this));
...
    }
}