vaadin / framework

Vaadin 6, 7, 8 is a Java framework for modern Java web applications.
http://vaadin.com/
Other
1.78k stars 729 forks source link

Using a proxy causes grid rowReference.getItemId() to return null #7639

Closed vaadin-bot closed 4 years ago

vaadin-bot commented 8 years ago

Originally by mfriessen


In the attached MyUI class, usage of EnhancedBeanProxy causes the RowReference to lose the selected item. Clicking around randomly with scrolling here and there produces the following output:

May 06, 2016 4:46:38 PM com.test.multi.gridtest.MyUI$2 itemClick INFO: ---------------> Bean 4 May 06, 2016 4:46:41 PM com.test.multi.gridtest.MyUI$2 itemClick INFO: ---------------> Bean 95 May 06, 2016 4:46:43 PM com.test.multi.gridtest.MyUI$2 itemClick INFO: ---------------> Bean 144 May 06, 2016 4:46:46 PM com.test.multi.gridtest.MyUI$2 itemClick INFO: ---------------> Bean 5 May 06, 2016 4:46:48 PM com.test.multi.gridtest.MyUI$2 itemClick INFO: ---------------> Bean 11 May 06, 2016 4:46:49 PM com.test.multi.gridtest.MyUI$2 itemClick INFO: ---------------> null [clicked Bean 48]

If EnhancedBeanProxy is changed to use EnhancedBean, clicking around randomly with scrolling here and there works without any issues. Since we were advised to use proxies, the grid should be able to handle them.


Imported from https://dev.vaadin.com/ issue #19793

vaadin-bot commented 8 years ago

Originally by mfriessen


Attachment added: ticket19793.zip (918.3 KiB) Code to reproduce the problem

stale[bot] commented 6 years ago

A lot of tickets have been left hanging in the issue tracker through the years. Some of them are still relevant, some of them have been fixed a long time ago and some are no longer valid. To get a better look on what is important and still relevant, we are closing old tickets which have not been touched in a long time. No further work will be done on this ticket. If the ticket seems to be still actual, please verify the problem existence over latest framework version and then open a new ticket in vaadin/framework with all the suitable information.

stale[bot] commented 4 years ago

The issue was automatically closed due to inactivity. If you found some new details to it or started working on it, comment on the issue so that maintainers can re-open it.