This should give you a headstart... add(new ListView("items") { protected void populateItem(Item item) { item.add(new TextField("description")); } protected IModel getListItemModel(IModel listViewModel, int index) { return new CompoundPropertyModel(super.getListItemModel(listViewModel, index)); } }.setReuseItems(true));
Martijn On 7/6/06, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote: > I'm using wicket to developer a budget application. > > I've a classic Master-Details data entry form and relative POJOs. For > example > > public class Order { > private Long id; > private Data date; > private Float amout; > private Float tax; > private List<OrderItem> items; > } > > public class OrderItem { > private Long id; > private String description; > private Integer qty; > private Float unitPrice; > } > > Customer is requesting to handle all order data entry using only one form. > > How to handle that using Wicket? For example suppose I want to edit an > existing order: which is the best approch to display data-entry fields for > each OrderItem element in 'items' collection? > > Thank you for helping. > > Paolo > > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > -- Download Wicket 1.2 now! Write Ajax applications without touching JavaScript! -- http://wicketframework.org Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user