Hi,
There is a bug with SimplePager that enable go to next page in the last
page (an must be disabled). Well, after some debugging if I change the
method onRangeOrRowCountChanged() in this way works well.
@Override
protected void onRangeOrRowCountChanged() {
HasRows display = getDisplay();
label.setText(createText());
// Update the prev and first buttons.
setPrevPageButtonsDisabled(!hasPreviousPage());
// Update the next and last buttons.
//if (isRangeLimited() || !display.isRowCountExact()) {
if (isRangeLimited() || *display.isRowCountExact()*) {
setNextPageButtonsDisabled(!hasNextPage());
setFastForwardDisabled(!hasNextPages(getFastForwardPages()));
}
}
As see, I remove "!" in display.isRowCountExact() and works. Hope helps
someone.
Juan
--
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.