CategoryDao cdao = (CategoryDao)getCtx().getBean("categoryDao"); add(new DropDownChoice("category.name",new CompoundPropertyModel(cdao.all())));