Re: Group Select with Beans

2012-04-13 Thread Martin Grigorov
A beanA = new A(); TextField aName = new TextField(name, new PropertyModel(beanA, name)); Select aId = new Select(id, new PropertyModel(beanA, b_id)); SelectOptions options = new SelectOptions(options, aListOfAllIdsInB, rendererIdToDisplay); aId.add(options); something like this should do it On

Group Select with Beans

2012-04-12 Thread William Speirs
I have 2 JavaBeans A B. A has 2 fields: String name, Integer b_id. B has 2 fields: Integer id, String display. I have a list of beans for B: 1, foo 2, bar I have a single A bean, where its b_id corresponds to an id in bean B (basically the beans represent 2 tables in a DB with the ids as