} else if (wicketId.startsWith("locking_responseList_")) {
ContentLoc loc = new ContentLoc(getModel().getObject());
String responseGroupId = elt.getAttribute("rgid");
ResponseMetadata metadata = getResponseMetadata(responseGroupId);
IModel<Prompt> mPrompt = responseService.getOrCreatePrompt(PromptType.RESPONSEAREA, loc, responseGroupId, metadata.getCollection());
ResponseList dataView = new LockingResponseList (wicketId, mPrompt, metadata, loc, ISISession.get().getTargetUserModel());
dataView.setContext(getResponseListContext(false));
dataView.setAllowNotebook(!inGlossary && !isTeacher && ISIApplication.get().isNotebookOn());
dataView.setAllowWhiteboard(!inGlossary && ISIApplication.get().isWhiteboardOn());
dataView.add(new AttributeRemover("rgid", "group"));
return dataView;
} else if (wicketId.startsWith("period_responseList_")) {
ContentLoc loc = new ContentLoc(getModel().getObject());
String responseGroupId = elt.getAttribute("rgid");
ResponseMetadata metadata = getResponseMetadata(responseGroupId);
IModel<Prompt> mPrompt = responseService.getOrCreatePrompt(PromptType.RESPONSEAREA, loc, responseGroupId, metadata.getCollection());
PeriodResponseList dataView = new PeriodResponseList(wicketId, mPrompt, metadata, loc, ISISession.get().getCurrentPeriodModel());
dataView.setContext(getResponseListContext(true));
dataView.setAllowEdit(!isTeacher);
dataView.setAllowNotebook(!inGlossary && !isTeacher && ISIApplication.get().isNotebookOn());
dataView.setAllowWhiteboard(!inGlossary && ISIApplication.get().isWhiteboardOn());
dataView.add(new AttributeRemover("rgid", "group"));
return dataView;
} else if (wicketId.startsWith("responseButtons_")) {
ContentLoc loc = new ContentLoc(getModel().getObject());
String responseGroupId = elt.getAttribute("rgid");