All pastes #476428 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-08 02:20 UTC
rendered paste body
		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()))));
		}