AjaxBehaviorEvent behaviorEvent = (AjaxBehaviorEvent) event;
FacesEvent wrapperEvent = null;
if(eventName.equals("dateSelect")) {
Date selectedDate = new Date(Long.valueOf(params.get(clientId + "_selectedDate")));
DateSelectEvent dateSelectEvent = new DateSelectEvent(this, behaviorEvent.getBehavior(), selectedDate);
dateSelectEvent.setPhaseId(behaviorEvent.getPhaseId());
wrapperEvent = dateSelectEvent;
}
else if(eventName.equals("eventSelect")) {
String selectedEventId = params.get(clientId + "_selectedEventId");