newVersionsTable.add(new ListView<ArtifactVersionNotification>("newVersions", getModel()) {
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(ListItem<ArtifactVersionNotification> item) {
ArtifactVersion version = item.getModelObject().getArtifactVersion();
IModel<ArtifactVersionNotification> versionNotificationModel = item.getModel();
Label groupId = new CustomLabel("groupId", BindingModel.of(versionNotificationModel,
Binding.artifactVersionNotification().artifactVersion().artifact().group().groupId()), STYLE_TABLE_TD);
if (item.getIndex() == NewVersionsHtmlNotificationPanel.this.getModelObject().size() - 1) {
groupId.add(new StyleAttributeAppender(STYLE_TABLE_BOTTOM_LEFT_RADIUS));
}
item.add(groupId);
WebMarkupContainer artifactIdContainer = new CustomWebMarkupContainer("artifactIdContainer", STYLE_TABLE_TD);
item.add(artifactIdContainer);
ExternalLink artifactIdLink = new ExternalLink("artifactIdLink",
notificationUrlBuilderService.getArtifactDescriptionUrl(version.getArtifact()));
artifactIdLink.add(new StyleAttributeAppender(STYLE_LINK));
artifactIdLink.add(new Label("artifactIdLabel", BindingModel.of(versionNotificationModel,
Binding.artifactVersionNotification().artifactVersion().artifact().artifactId())));
artifactIdContainer.add(artifactIdLink);