List requests = accountService.getAccountRequestsByStatus(statusType);
setOrderedOids(requests);
statusTypeBean.clear();
statusTypeBean.setMultipleSelection(false);
ListBoxItemBean itemAll = new ListBoxItemBean();
itemAll.setName("ALL");
itemAll.setValue("ALL");
itemAll.setSelected("ALL".equals(statusType));
statusTypeBean.addBean(itemAll);
EnumSet allStatus = EnumSet.allOf(AccountRequest.Status.class);
for (Iterator itr = allStatus.iterator(); itr.hasNext(); ) {
AccountRequest.Status status = (AccountRequest.Status)itr.next();
String name = status.toString();
ListBoxItemBean item = new ListBoxItemBean();
item.setName(name);
item.setValue(name);
item.setSelected(name.equals(statusType));
statusTypeBean.addBean(item);
}
req.setAttribute("requests", requests);