-
FEATURED COMPONENTS
First time here? Check out the FAQ!
When I click certain event bar on in the calendar, I want to open a new page to show the details and related information of the event which I clicked.
How to do that?
You can catch the THREE events from calendar and call a new zul-file for that:
only a few pieces of code:
Calendars cal;
. . .
cal.addEventListener(CalendarsEvent.ON_EVENT_CREATE, new OnCreateEventListener());
this.cal.addEventListener(CalendarsEvent.ON_EVENT_EDIT, new OnEditEventListener());
this.cal.addEventListener(CalendarsEvent.ON_EVENT_UPDATE, new OnUpdateEventListener());
. . .
private final class OnEditEventListener implements SerializableEventListener {
. . .
HashMap<String, Object> map = new HashMap<String, Object>();
map.put("calendarsEvent", ce);
Window win = (Window)Executions.createComponents("/WEB-INF/pages/calendar/calendarEvent.zul", parentWin, map);
}
best Stephan
Asked: 2014-06-23 05:22:51 +0800
Seen: 17 times
Last updated: Jun 23 '14
new page or popup?
chillworld ( 2014-06-23 07:24:06 +0800 )edit