I have a trivial TabLayoutPanel created using UIBinder. Tabs are displayed, but none of the content does. It is in HTML, but it always crashes (built-in styles installed on elements lead to its breakdown). As far as I can tell, this looks like every TabLayoutPanel example I've seen. Other widgets are displayed perfectly. A project is just a basic example when HTML and code are disabled by default.
XML:
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<g:TabLayoutPanel barHeight='22' barUnit='PX'>
<g:tab>
<g:header>Tab A</g:header>
<g:HTML>
asdf
<p>asdfasdf</p>
</g:HTML>
</g:tab>
<g:tab>
<g:header>Tab B</g:header>
<g:Label>blah</g:Label>
</g:tab>
<g:tab>
<g:header>Tab C</g:header>
<g:Label>blah</g:Label>
</g:tab>
</g:TabLayoutPanel>
</ui:UiBinder>
And Java:
public class Main extends Composite {
private static MainUiBinder uiBinder = GWT.create(MainUiBinder.class);
interface MainUiBinder extends UiBinder<Widget, Main> {
}
public Main() {
initWidget(uiBinder.createAndBindUi(this));
}
}
And I add it to my application as follows:
public void onModuleLoad() {
RootPanel.get().add(new Main());
}
I am stunned. It should be trivially easy. I must be missing something stupid. Any ideas?
source
share