dynaForm.set("modify", simpleDateFormat.format(modifiedDate));
dynaForm.set("owner", (new Integer(groupVO.getOwner())).toString());
ListPreference listPreference = userObject.getListPreference("Individual");
ListView view = listPreference.getListView(String.valueOf(listPreference.getDefaultView()));
ValueListParameters listParameters = (ValueListParameters)request
.getAttribute("listParameters");
if (listParameters == null) {
listParameters = new ValueListParameters(ValueListConstants.GROUP_MEMBER_LIST_TYPE,
listPreference.getRecordsPerPage(), 1);
FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.individualViewMap
.get(listPreference.getSortElement());
listParameters.setSortColumn(sortField.getQueryIndex());
if (listPreference.getsortOrder()) {
listParameters.setSortDirection("ASC");
} else {
listParameters.setSortDirection("DESC");
}
}
Vector viewColumns = view.getColumns();
ArrayList columns = new ArrayList();
ActionUtil.mapOldView(columns, viewColumns, ValueListConstants.GROUP_MEMBER_LIST_TYPE);
listParameters.setColumns(columns);
String filter = "SELECT DISTINCT member.childId AS individualId FROM member WHERE member.groupId = "
+ row;
listParameters.setFilter(filter);
ValueListHome valueListHome = (ValueListHome)CVUtility.getHomeObject(
"com.centraview.valuelist.ValueListHome", "ValueList");
ValueList valueList = null;
try {
valueList = valueListHome.create();