};
}
private UIComponent getResourceField(FacesContext context, EventEditorDialog dialog) {
DropDownField field = Components.getOrCreateFacet(context, dialog, DropDownField.COMPONENT_TYPE,
"resourceField", DropDownField.class);
List<TimetableResource> resources = (List<TimetableResource>) dialog.getAttributes().get(
DayTableRenderer.EVENTEDITOR_RESOURCES_ATTR);
for (TimetableResource resource : resources) {
field.getChildren().add(new DropDownItem(resource.getName()));
}
field.setCustomValueAllowed(false);
return field;
}