looks like SimplePager requires a constructor argument
public SimplePager(PagingListView<T> view) {
FlowPanel p = new FlowPanel();
p.add(prevPageButton = makeButton("Previous Page", "PREV"));
p.add(nextPageButton = makeButton("Next Page", "NEXT"));
p.add(remove5Button = makeButton("Remove 5 rows", "REM5"));
p.add(remove1Button = makeButton("Remove row", "REM1"));
p.add(makeButton("Add row", "ADD1"));
p.add(makeButton("Add 5 rows", "ADD5"));
p.add(infoLabel = new Label(""));
initWidget(p);
this.view = view;
view.setPager(this);
}
On Jun 4, 8:43 pm, Chris <[email protected]> wrote:
> Hello,
>
> I'm trying to get a CellTable example working with the UiBinder, and
> I'm getting the following error:
>
> [ERROR] [tree] <h:SimplePager ui:field='pager'> missing required
> attribute(s): location view Element <h:SimplePager ui:field='pager'>
> (PeopleWidget.ui.xml:9)
>
> Here's my ui.xml:
>
> <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
> xmlns:g='urn:import:com.google.gwt.user.client.ui'
> xmlns:h='urn:import:com.google.gwt.user.cellview.client'>
>
> <g:VerticalPanel>
> <h:CellTable ui:field="peopletable">
> </h:CellTable>
> <h:SimplePager ui:field="pager">
> </h:SimplePager>
> </g:VerticalPanel>
>
> </ui:UiBinder>
>
> The error makes it look like I'm missing an attribute in my
> SimplePager definition, but I'm not sure what it would be. Anyone
> have any ideas?
>
> Thanks,
> Chris
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.