this.viewContext = viewContext;
}
protected void populateItem(final ListItem item) {
try {
Concept concept = (Concept) item.getModelObject();
String conceptName = concept.getCode().toUpperCase();
Label conceptNameLabel = new Label("conceptName", conceptName);
item.add(conceptNameLabel);
ModelContext propertiesModelContext = new ModelContext(modelContext);
Properties properties = concept.getProperties();
propertiesModelContext.setEntities(properties);
ViewContext propertiesViewContext = new ViewContext(viewContext);
propertiesViewContext.setWicketId("propertyListPanel");
PropertyListPanel propertyListPanel = new PropertyListPanel(
propertiesModelContext, propertiesViewContext);
item.add(propertyListPanel);
ModelContext neighborsModelContext = new ModelContext(modelContext);
Neighbors neighbors = concept.getNeighbors();
neighborsModelContext.setEntities(neighbors);
ViewContext neighborsViewContext = new ViewContext(viewContext);
neighborsViewContext.setWicketId("neighborListPanel");
NeighborListPanel neighborListPanel = new NeighborListPanel(
neighborsModelContext, neighborsViewContext);