add(new PropertyNameLabelListView("propertyNameLabelListView",
essentialPropertyNames));
List<String> childNeighborNames = lookupConceptConfig
.getChildNeighborNames();
add(new NeighborEmptyNameLabelListView(
"neighborEmptyNameLabelListViewHead", childNeighborNames));
ModelContext lookupModelContext = new ModelContext(modelContext);
lookupModelContext.setContextEntities(lookupModelContext
.getEntities());
lookupModelContext.setEntities(lookupEntities);
ViewContext lookupViewContext = new ViewContext(viewContext);
lookupViewContext.setWicketId("entityLookupTableListView");
PageableListView entityLookupTableListView = app.getViewMeta()
.getPageableListView("EntityLookupTableListView",
lookupModelContext, lookupViewContext);
add(entityLookupTableListView);
if (!app.isConceptDisplayAllowed(getAppSession(),
lookupConceptConfig)) {
entityLookupTableListView.setVisible(false);
}
add(new PropertyEmptyNameLabelListView(
"propertyEmptyNameLabelListView", essentialPropertyNames));
add(new PagingNavigator("blockNavigator", entityLookupTableListView));
add(new NeighborEmptyNameLabelListView(
"neighborEmptyNameLabelListViewTail", childNeighborNames));
} catch (Exception e) {
log.error("Error in EntityLookupTablePanel: "
+ modelContext.getEntitiesCode() + " - " + e.getMessage());
}