added count label

This commit is contained in:
fred-fri 2012-05-10 12:30:17 +09:00
parent 7002fc1993
commit 2cd588322a
2 changed files with 4 additions and 2 deletions
src/main/java/se/su/dsv/scipro/admin/panels/match

@ -15,13 +15,13 @@
<table wicket:id="table" class="rounded-corner">
<thead>
<tr>
<th class="rounded-left-top">Name</th><th>Manage keyword associations</th><th>Type</th><th>Active</th><th class="rounded-right-top">Edit</th>
<th class="rounded-left-top">Name</th><th>Keyword associations</th><th>Type</th><th>Active</th><th class="rounded-right-top">Edit</th>
</tr>
</thead>
<tbody>
<tr wicket:id="keywordsDataView">
<td><a href="#" wicket:id="detailsLink"><span wicket:id="name"></span></a></td>
<td><a wicket:id="manageAssociationsLink">Manage</a></td>
<td><span wicket:id="associationsCount"></span> <a wicket:id="manageAssociationsLink">Manage</a></td>
<td wicket:id="type"></td>
<td><a href="#" wicket:id="activeLink">
<img wicket:id="activeIcon" /></a></td>

@ -181,6 +181,8 @@ public class ManageKeywordPanel extends Panel {
}
}.setVisible(hasManageAssociations));
item.add(new Label("associationsCount", String.valueOf(item.getModelObject().getAssociatedKeywords().size())));
}
};