archersa
(Stephen Archer)
February 28, 2022, 2:13am
1
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
Stefan.27
(Stefan Uebe)
March 1, 2022, 4:02am
2
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?
archersa
(Stephen Archer)
March 1, 2022, 6:34am
3
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
Stefan.27
(Stefan Uebe)
March 1, 2022, 7:23am
4
Will be fixed, see your issue.
archersa
(Stephen Archer)
March 2, 2022, 1:44am
5
Hi Stefan,
Thanks for the ResourceEntry Provider fixes in 4.1.2. It’s all working nicely.
Stephen