ddd
git-svn-id: svn://svn.dsv.su.se/scipro/scipro/trunk@469 73ecded7-942e-4092-bab0-0e58ef0ee984
This commit is contained in:
parent
1484082216
commit
fc70bec4ba
@ -196,7 +196,14 @@ public class CommentThreadPanel extends Panel {
|
||||
@Override
|
||||
public void onClick(AjaxRequestTarget target) {
|
||||
comment = commentDao.reLoad(comment);
|
||||
CommentThread ct = commentThreadDao.getCommentThreadByComment(comment);
|
||||
List<Comment> commentList = ct.getCommentList();
|
||||
commentList.remove(comment);
|
||||
ct.setCommentList(commentList);
|
||||
commentThreadDao.save(ct);
|
||||
|
||||
commentDao.delete(comment);
|
||||
|
||||
webMarkupContainer.remove(commentListView);
|
||||
webMarkupContainer.remove(customPagingNavigator);
|
||||
generateCommentListView();
|
||||
|
Loading…
x
Reference in New Issue
Block a user