added ListCheckListTemplatePanel

This commit is contained in:
Fredrik Norberg 2011-08-02 15:42:38 +02:00
parent a2b09124f7
commit 19a80d3935
2 changed files with 20 additions and 2 deletions
src/main/java/se/su/dsv/scipro/checklists/panels

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
</head>
<body>
<wicket:panel>
<div wicket:id="container">
<div wicket:id="checkListTemplates">
<div wicket:id="templateName"></div>
<div wicket:id="templateOwner"></div>
</div>
</div>
</wicket:panel>
</body>
</html>

@ -52,7 +52,7 @@ public class ListCheckListTemplatePanel extends Panel{
@Override
protected void populateItem(ListItem<CheckListTemplate> item) {
Label templateName = new Label("templateName", new PropertyModel<String>(item.getModel(),"name"));
Label templateOwner = new Label("templateOwner", new PropertyModel<String>(item.getModel(), "owner"));
Label templateOwner = new Label("templateOwner", new PropertyModel<String>(item.getModel(), "creator"));
item.add(templateName);
item.add(templateOwner);
@ -60,8 +60,9 @@ public class ListCheckListTemplatePanel extends Panel{
};
container.add(checkListTemplates);
}
add(container);
}
}