<ui:UiBinder
xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:c="urn:import:com.google.gwt.user.cellview.client">
<g:DockLayoutPanel
unit="EM">
<!-- DataGrid. -->
<g:center>
<c:DataGrid ui:field='cellTable' visible="true"/>
</g:center>
<!-- Pager. -->
<g:south size="3">
<g:HTMLPanel>
<table style="width:100%">
<tr>
<td>
<c:SimplePager ui:field='pager' location="CENTER"/>
</td>
</tr>
</table>
</g:HTMLPanel>
</g:south>
</g:DockLayoutPanel>
</ui:UiBinder>
which is a copy of the showcase example.
it does show if i create everything manually:
cellTable = new DataGrid<Contact>(15);
pager = new SimplePager(SimplePager.TextLocation.CENTER);
DockLayoutPanel ret = new DockLayoutPanel(Style.Unit.PX);
initUIComponents();//configures columns, adds data
ret.addNorth(cellTable, 500);
ret.addSouth(pager, 100);
return ret;//is added to a rootlayoutpanel
but here, i cannot see the pager even though it's on the page.
if i use a vertical panel instead of a docklayoutpanel and a celltable instead of a datagrid, everything works as expected.