hello all:
below is a super simple app, which demonstrate the use of uibinder, so
strange that after lanching the app, i can only see the top part of
docklayoutpanel, nothing shows in the below part!
is there anything wrong? please help me out, thanks very much.
public class KeyProviderExample implements EntryPoint
{
public void onModuleLoad()
{
RootPanel.get().add( new ExpensesShell() );
}
}
public class ExpensesShell extends Composite
{
interface ShellUiBinder extends UiBinder<Widget, ExpensesShell>
{
}
private static ShellUiBinder uiBinder =
GWT.create( ShellUiBinder.class );
public ExpensesShell()
{
initWidget( uiBinder.createAndBindUi( this ) );
}
}
<!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'
xmlns:e='urn:import:com.history.client'>
<g:DockLayoutPanel unit='PX'>
<g:north size='50'>
<g:HTMLPanel>abc</g:HTMLPanel>
</g:north>
<g:center>
<g:HTMLPanel>def</g:HTMLPanel>
</g:center>
</g:DockLayoutPanel>
</ui:UiBinder>