May 2015
Beginner to intermediate
412 pages
8h 44m
English
The Schedule component provides a calendar to manage events, such as Outlook Calendar and iCal. By default, a whole set of events is eagerly provided via the ScheduleModel class. That means all events are loaded at once on page load. The lazy loading feature helps to improve performance if we have a huge dataset of events or if events take too much time to load. In the lazy loading mode, only events that belong to the displayed timeframe are fetched.
In this recipe, we will implement a small example for the Schedule component's lazy loading feature.
A basic definition of schedule would be as shown here:
<p:schedule id="lazySchedule"
value="#{scheduleBean.lazyScheduleModel}"/>Read now
Unlock full access