Dieter Engelhardt:
I've found that Vaadin can handle Liferay Data simply by wrapping it in org.vaadin.data.collectioncontainer.CollectionContainer
EXAMPLE
1
2 List<CalEvent> tempResults = CalEventLocalServiceUtil.
3 getCompanyEvents(companyId, 0, CalEventLocalServiceUtil.getCompanyEventsCount(companyId));
4 event_tab.setContainerDataSource(CollectionContainer.fromBeans(tempResults, "eventId"));
Well first of all you should be using getCompanyEvents(companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS); rather than what you just did - you have an extra call to the database to retrieve the count unnecessarily.
Secondly, anyone can retrieve all of the rows and provide them via a CollectionContainer. The issue here is integrating the Vaadin paging over the entire result set w/o actually having to retrieve all of the data initially.
That is certainly not supported through the simple CollectionContainer...
Please sign in to flag this as inappropriate.