Stuff
public text v1 · immutable CategoryDao cdao = (CategoryDao)getCtx().getBean("categoryDao");
for(Iterator<Category> i = cdao.all("name",true).iterator();i.hasNext();) {
Category c = i.next();
rp.add(new WebMarkupContainer(c.getName()).add(new Link("link") {
private static final long serialVersionUID = 1L;
@Override
public void onClick() {
setResponsePage(Index.class);
}
}.add(new Label("linkName",c.getName()))));
}