} catch (CreateException e) {
logger.error("[execute] Exception thrown.", e);
throw new ServletException(e);
}
valueList.setDataSource(dataSource);
ValueListVO listObject = valueList.getValueList(individualId, listParameters);
ArrayList buttonList = new ArrayList();
ValueListDisplay displayParameters = null;
buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
buttonList.add(new Button("Mark Read", "read", "vl_readList();", false));
buttonList.add(new Button("Mark UnRead", "unread", "vl_unReadList();", false));
buttonList.add(new Button("Private", "private", "vl_privateList();", false));
buttonList.add(new Button("Rules", "rule", "vl_ruleList(" + currentAccountID + ");", false));
displayParameters = new ValueListDisplay(buttonList, true, true);
listObject.setMoveTo(true);
displayParameters.setSortable(true);
displayParameters.setPagingBar(true);
displayParameters.setLink(true);
// Add the Attachment Column
displayParameters.setAttachmentIcon(true);
// Add the Priority Column
displayParameters.setPriority(true);
listObject.setDisplay(displayParameters);
// Stick the list on the request and then the custom list tag will handle
// it.
if (logger.isDebugEnabled()) {
long debugTime = (System.currentTimeMillis() - start);
logger.debug("[execute] End to End: " + debugTime + " ms");
listObject.getParameters().setDebugTime(debugTime);
}
request.setAttribute("valueList", listObject);
request.setAttribute("showComposeButton", new Boolean(true));
request.setAttribute("newButtonValue", "Compose");