Re: [Wicket-user] Re: Updating multiple database records with one form submit

2005-08-17 Thread Phil Kulak
Check out the user's guide as well. There's some very good documentation on models in there. On 8/17/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > This just works, but not totally as you might expect... > > public MyForm(String id, FooBar foobar) { > super(id, new CompoundPropertyModel(fo

Re: [Wicket-user] Re: Updating multiple database records with one form submit

2005-08-17 Thread Martijn Dashorst
This just works, but not totally as you might expect... public MyForm(String id, FooBar foobar) { super(id, new CompoundPropertyModel(foobar)); add(new ListView("persons") { protected IModel getListItemModel(IModel model, int nr) { return new CompoundPropertyModel(super.g

[Wicket-user] Re: Updating multiple database records with one form submit

2005-08-17 Thread Anders Peterson
Thanks very much for trying to help, I have it working now, but I'm not happy with the code - it's not "correct". It's the small, obvious, things that are difficult for beginners. I had this: new Model(tmpBrand.getName(), "name") which of course did not work. Changing to this: new PropertyMo