ResponseWriter writer = context.getResponseWriter();
writer.startElement("span", component);
writeIdAttribute(context, component);
writer.writeAttribute("style", "display: none", null);
CustomEventEditor editor = (CustomEventEditor) component;
UIComponent timetableView = editor.getParent();
Rendering.renderInitScript(context, new ScriptBuilder().initScript(context, timetableView, "O$.Timetable._initCustomEventEditor",
editor,
new AnonymousFunction(editor.getOncreate(), "timetable", "timetableEvent"),
new AnonymousFunction(editor.getOnedit(), "timetable", "timetableEvent")).semicolon());
writer.endElement("span");
}