fixed some gui requests

This commit is contained in:
fred-fri 2012-05-11 10:45:26 +09:00
parent 462071780f
commit c371cf2b14
2 changed files with 5 additions and 2 deletions
src/main/java/se/su/dsv/scipro/admin/panels/match

@ -15,7 +15,7 @@
<table wicket:id="table" class="rounded-corner">
<thead>
<tr>
<th class="rounded-left-top">Name</th><th>Keyword associations</th><th>Type</th><th>Active</th><th class="rounded-right-top">Edit</th>
<th class="rounded-left-top">Name</th><th><span wicket:id="keywordAssociationsLabel"></span></th><th>Type</th><th>Active</th><th class="rounded-right-top"><span wicket:id="editLabel"></span></th>
</tr>
</thead>
<tbody>

@ -79,6 +79,9 @@ public class ManageKeywordPanel extends Panel {
tableContainer = new WebMarkupContainer("table");
tableContainer.setOutputMarkupId(true);
tableContainer.add(new Label("keywordAssociationsLabel", "Keyword associations").setVisible(hasManageAssociations));
tableContainer.add(new Label("editLabel", "Edit").setVisible(isEditable));
keywordsDataView = new DataView<Keyword>("keywordsDataView", keywordsDataProvider) {
private static final long serialVersionUID = 1L;
@ -181,7 +184,7 @@ public class ManageKeywordPanel extends Panel {
}
}.setVisible(hasManageAssociations));
item.add(new Label("associationsCount", String.valueOf(item.getModelObject().getAssociatedKeywords().size())));
item.add(new Label("associationsCount", String.valueOf(item.getModelObject().getAssociatedKeywords().size())).setVisible(hasManageAssociations));
}