Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Peter-M- opened this issue Nov 15, 2013 · 1 comment
Open

Comments

@Peter-M-
Copy link

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
Copy link
Owner

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...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants