format fixes

Change-Id: If6498eda760a29a14ddd31e788220607b37411fc
This commit is contained in:
joha-asc 2011-07-12 15:33:50 +02:00
parent 202e911c96
commit 73a6ea4fe1

@ -79,7 +79,7 @@ public class ConferencePanel extends Panel {
if (keyObject == null) {
// TODO rewrite so thread is only created on demand, ie when
// someone's posted
messageBoard = new MessageBoard();
messageBoard = new MessageBoard(keyObject);
messageBoard.setTitle(title);
messageBoard = messageBoardDao.save(messageBoard);
}
@ -214,13 +214,14 @@ public class ConferencePanel extends Panel {
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
BoardMessage bm = new BoardMessage();
bm.setMessage(message);
bm.setMessageBoard(messageBoardDao.reLoad(messageBoard));
bm.setMessageBoard(messageBoardModel.getObject());
System.out.println(messageBoardModel.getObject());
bm.setFromUser(SciProSession.get().getUser());
bm = boardMessageDao.save(bm);
Notification notification = new Notification();
notification.setInfoText(SciProSession.get().getUser()
+ " wrote on conference "
+ messageBoardDao.reLoad(messageBoard).getTitle());
+ messageBoardModel.getObject().getTitle());
notification.setSubscribers(new HashSet<User>(userList));
notificationDao.save(notification);