ValueListDisplay displayParameters = null;
if (actionType != null && actionType.equals("lookup")) {
// When we select the lookup then we should add the Select button to the
// valueList
buttonList.add(new Button("Select", "select", "lu_selectList('Entity');", false, "label.select", request.getLocale()));
buttonList.add(new Button("New Entity", "new", "c_newButton('Entity', 14)", false, "label.contact.newentity", request.getLocale()));
displayParameters = new ValueListDisplay(buttonList, false, false);
displayParameters.setRadio(true);
listObject.setLookup(true);
listObject.setLookupType(actionType);
request.setAttribute("dynamicTitle", "Entity");
request.setAttribute("lookupType", "Entity");
} else {
listObject.setMoveTo(true);
buttonList.add(new Button("View", "view", "vl_viewList();", false, "label.view", request.getLocale()));
buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false, "label.delete", request.getLocale()));
displayParameters = new ValueListDisplay(buttonList, true, true);
}
displayParameters.setSortable(true);
displayParameters.setPagingBar(true);