if(dataSource == null) {
if (displayGroup instanceof ERXBatchingDisplayGroup) {
ERXBatchingDisplayGroup dg = (ERXBatchingDisplayGroup) displayGroup;
dataSource = ERXEOControlUtilities.dataSourceForArray(displayGroup.displayedObjects());
} else {
dataSource = ERXEOControlUtilities.dataSourceForArray(displayGroup.allObjects());
}
}
D2WContext newContext = ERD2WContext.newContext(session);
String newTask = d2wContext.task().equals("edit") ? "inspect" : d2wContext.task();
// for editable list pages...