ResponseWriter writer = context.getResponseWriter();
writer.startElement("span", component);
writeIdAttribute(context, component);
writer.writeAttribute("style", "display: none", null);
EventEditorPage eventEditorPage = (EventEditorPage) component;
UIComponent timetableView = eventEditorPage.getParent();
Rendering.renderInitScript(context, new ScriptBuilder().initScript(context, timetableView, "O$.Timetable._initEventEditorPage",
eventEditorPage,
eventEditorPage.getActionExpression() != null,
eventEditorPage.getUrl(),
eventEditorPage.getModeParamName(),
eventEditorPage.getEventIdParamName(),
eventEditorPage.getEventStartParamName(),
eventEditorPage.getEventEndParamName(),
eventEditorPage.getResourceIdParamName()).semicolon());
writer.endElement("span");
}