public WhiteboardRemoveDialog(String id, IModel<?> model) {
super(id, model);
}
protected void removeObject() {
ISIResponse resp = (ISIResponse) getDefaultModelObject();
// Lock to current session - necessary since objects are stored detached in responseMap
Databinder.getHibernateSession().buildLockRequest(LockOptions.UPGRADE).lock(resp);
responseService.removeFromWhiteboard(resp, Whiteboard.this);
setResponsePage(ISIApplication.get().getWhiteboardPageClass(), getPageParameters());
}