getBean(PrivateMessagesDao.class).updateReadStatus(selectedMessages, false);
emptySelection(target);
target.add(container);
}
}));
buttons.add(selectDropDown.setOutputMarkupId(true).add(new OnChangeAjaxBehavior() {
private static final long serialVersionUID = 1L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
switch (selectDropDown.getModelObject()) {
case SELECT_CHOOSE:
break;
case SELECT_ALL:
selectedMessages.clear();
selectedMessages.addAll(allMessages);
break;
case SELECT_NONE:
selectedMessages.clear();
break;
case SELECT_UNREAD:
selectedMessages.clear();
selectedMessages.addAll(unreadMessages);
break;
case SELECT_READ:
selectedMessages.clear();
selectedMessages.addAll(readMessages);
break;
}
target.add(container);
}
}));
buttons.add(moveDropDown.setOutputMarkupId(true).add(new OnChangeAjaxBehavior() {
private static final long serialVersionUID = 1L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
long folderId = moveDropDown.getModelObject().getPrivateMessageFolderId();