Here is my ui.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">
<ui:with type="com.company.group.resources.project" field="resource"/
>
<g:DockLayoutPanel unit='EM'>
<g:north size='12'>
<g:VerticalPanel>
<g:HorizontalPanel>
<g:Image resource = "{resource.Logo}" />
<g:TabLayoutPanel ui:field="tab" barHeight="20"
barUnit="PX">
<g:tab><g:header>Tab1</
g:header><g:HTMLPanel>Tab1</g:HTMLPanel></g:tab>
<g:tab><g:header>Tab2</
g:header><g:HTMLPanel>Tab2</g:HTMLPanel></g:tab>
</g:TabLayoutPanel>
</g:HorizontalPanel>
</g:VerticalPanel>
</g:north>
<g:west size ='20'>
<g:VerticalPanel>
</g:VerticalPanel>
</g:west>
<g:center>
<g:VerticalPanel>
</g:VerticalPanel>
</g:center>
</g:DockLayoutPanel>
</ui:UiBinder>
Here is my java code -
public class PrototypeView extends Composite
{
/** UIBinder instance. */
private static MyViewUiBinder uiBinder =
GWT.create(MyViewUiBinder.class);
/** Custom UIBinder interface for this view's widgets. */
interface MyViewUiBinder extends UiBinder<Widget, PrototypeView>
{}
public PrototypeView()
{
initWidget(uiBinder.createAndBindUi(this));
}
}
public class MyEntryPoint implements EntryPoint {
@Override
public void onModuleLoad() {
RootLayoutPanel.get().add(new PrototypeView());
}
}
When I run my app, the Tabs do not show up. Please Help.