context, component, PopupLayer.COMPONENT_TYPE, "_popupLayer", PopupLayer.class);
popupLayer.setId(eventPreview.getId() + Rendering.SERVER_ID_SUFFIX_SEPARATOR + "popupLayer");
popupLayer.setStyle(eventPreview.getStyle());
popupLayer.setStyleClass(eventPreview.getStyleClass());
popupLayer.setHideOnOuterClick(true);
popupLayer.encodeAll(context);
OUIComponent timetableView = (OUIComponent) eventPreview.getParent();
String componentJs;
if (timetableView instanceof MonthTable) {