Schedule has a quite complex UI which is generated on-the-fly by the client side
PrimeFaces.widget.Schedule widget to save bandwidth and increase page load performance. As a
result when you try to update schedule like with a regular PrimeFacess PPR, you may notice a UI
lag as the DOM will be regenerated and replaced. Instead, Schedule provides a simple client side
api and the update method. Whenever you call update, schedule will query it’s server side
ScheduleModel instance to check for updates, transport method used to load events dynamically is
JSON, as a result this approach is much more effective then updating with regular PPR. An example
of this is demonstrated at editable schedule example, save button is calling myschedule.update() at
oncomplete event handler
Partager