Hi Stefan, This is a great Vaadin add-on, thank you. I had a question abou

Hi Stefan,

This is a great Vaadin add-on, thank you. I had a question about LazyInMemoryEntryProvider, which I’ve successfully used to populate FullCalender from a MySQL database.

I now want to use Scheduler in the same way by adding ResourceEntries instead of Entries, but it seems there is no implementation of LazyInMemoryEntryProvider for ResourceEntry. Am I missing something?

Stephen

Hi Stephen, no there is no explicit ResourceEntry variant, but in theory there is no need for, since ResourceEntry extends Entry.

Have there been any issues with this?

Hi Stefan,

Thanks for replying. The following two lines compile OK (sorry - this editor won’t accept angle brackets around the entities):

List (ResourceEntry) entryList = myService.streamResourceEntries().collect(Collectors.toList());

LazyInMemoryEntryProvider (ResourceEntry) entryProvider = EntryProvider.lazyInMemoryFromItems(entryList);

But then I can’t set the entity provider for the calender by doing:
calendar.setEntryProvider(entryProvider);

because it will only accept EntryProvider (Entry). Maybe I’m not doing this the correct way.

Stephen

Will be fixed, see your issue.

Hi Stefan,

Thanks for the ResourceEntry Provider fixes in 4.1.2. It’s all working nicely.

Stephen