ondrej-kvasnovsky / lazy-container

Lazy containers for Vaadin 7
8 stars 6 forks source link

The last Row is missing in Table with LazyBeanContainer datasource. #2

Open Peter-M- opened 10 years ago

Peter-M- commented 10 years ago

In case of bigger datasource, the last row is missing in the table.

"code"

LazyBeanContainer lbc = new LazyBeanContainer(SomeModel.class,new DAO(),rs);
//DAO getCount() always return 1000. //getItemIds method in LazyBeanContainer returns always all values correctly - according to startIndex & numberOfIds

Table tableTest = new Table("Test Table", lbc); //result -> the last row is missing at the bottom of table

BeanContainer<Long, SomeModel> bc = new BeanContainer<Long, SomeModel>(SomeModel.class);//to compare with Vaadin original container Table tableTest = new Table("Test Table", lbc); // result -> all rows are displayed correctly.

LazyBeanContainer works well for 50, 100 rows. For 1000 or more it doesnt. The last row is missing. In case I use Vaadin's standard BeanContainer table displays everything correctly.

In debugMode, method getItemIds(int,...) returns for the last page (where the last row is missing) all DB records correctly (the last record is there).

I am using Vaadin 7.0.6.

Any idea?

ondrej-kvasnovsky commented 10 years ago

I have to say that I do not know. I will create a demo project with h2 database for issue replications (and sorry for a really long response time, I missed this one...).