I have a GWT app which uses the TabLayoutPanel using UiBinder. I have got UiBinder as:
<!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 ui:field="tabLayoutPanel" barUnit="em" barHeight="3">
<g:tab>
<g:header>Welcome</g:header>
</g:tab>
<g:tab>
<g:header>Login</g:header>
</g:tab>
</g:TabLayoutPanel>
</ui:UiBinder>
And the view code as:
public class MyView extends Composite {
interface MyUiBinder extends UiBinder<Widget, MyView> {}
private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
@UiField TabLayoutPanel tabLayoutPanel;
public AuthenticateView() {
initWidget(uiBinder.createAndBindUi(this));
}
}
This code always crash with an error:
Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.mycompany.MyView' (did you forget to inherit a required module?) at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at
com.google.gwt.core.shared.GWT.create(GWT.java:57) at
com.google.gwt.core.client.GWT.create(GWT.java:85)
Could someone tell me what went wrong.
I did add this to a RootLayoutPanel through.
Many thanks