Let us now try to attach AJAX listener methods for date and event selection to display event properties in a pop-up box. The returned event object for both the date and the event selection AJAX behaviors contains the title, start date, end date, and all day properties:
public void onEventSelect(SelectEvent selectEvent) { event = (ScheduleEvent) selectEvent.getObject(); } public void onDateSelect(SelectEvent selectEvent) { event = new DefaultScheduleEvent("", (Date) selectEvent.getObject(),(Date) selectEvent.getObject()); }
The returned event object from the preceding listener methods will be accessed by the dialog
component to display the properties.
Click on the currently selected date. The event details in an editable format will be displayed, as follows:
Clicking on the existing schedule event will display the event details in an editable format, as follows:
From the preceding screenshots, we can clearly see that PrimeFaces doesn...