private static final long serialVersionUID = 8793019471745319174L;
@Override
protected void populateItem(ListItem item) {
final SubSegment subSegment = (SubSegment) item.getModelObject();
PageLink link = new PageLink("link", new IPageLink() {
private static final long serialVersionUID = 4182879013901656829L;
public Page getPage() {
return(new SubSegmentDetails(subSegment));
}
public Class<?> getPageIdentity() {
return(SubSegmentDetails.class);
}
});
link.add(new Label("name", subSegment.getName()));
item.add(link);
}
});
this.childSubSegmentsContainer.add(new ListView("childSubSegments") {
private static final long serialVersionUID = 1273612869821409740L;
@Override
protected void populateItem(ListItem item) {
final SubSegment subSegment = (SubSegment) item.getModelObject();
PageLink link = new PageLink("link", new IPageLink() {
private static final long serialVersionUID = -1232152334705755201L;
public Page getPage() {
return(new SubSegmentDetails(subSegment));
}
public Class<?> getPageIdentity() {
return(SubSegmentDetails.class);
}
});
link.add(new Label("name", subSegment.getName()));
item.add(link);
}
});
this.add(this.subSegmentsContainer);
this.add(this.childSubSegmentsContainer);