poptanimukesh / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
0 stars 0 forks source link

PagingOptions doesn't react well to zero rows #308

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of gwt and gwt-incubator are you using?

The one for 1.7

What OS and browser are you using?

Windows 7, hosted mode.

Hopefully using the test case you have generously provided, what steps will 
reproduce the problem? 
1. Make a MutableModel, assume your data set has yet to be populated by the 
user, return 0 from row count.
2. Here 0 is not Unknown, it's really is zero, we have yet to create rows 
for this thing

What is the expected output? What do you see instead?

Expected the paging controls to be disabled.  Instead, we can navigate the 
page number to any number, positive or negative.

Workaround if you have one:

Currently hide the PagingOptions widget on zero rows.

Original issue reported on code.google.com by pjul...@gmail.com on 16 Sep 2009 at 10:34