Re: [Wicket-user] Form-question

2006-08-15 Thread Gwyn Evans
Sorry, just speed reading, saw the setOutputMarkupId() call which made me think you might be doing Ajax... As for your real question, I don't know. I'm probably wrong, as it's been a while since I looked into anything complex with models, but new CompoundPropertyModel( new PersonPropertyMod

Re: [Wicket-user] Form-question

2006-08-14 Thread Mats Norén
Not really, I'm not using any Ajax-stuff or anything like that. How do you mean? /Mats On 8/14/06, Gwyn Evans <[EMAIL PROTECTED]> wrote: > Does this thread apply? > (http://www.nabble.com/ajax-failed-to-update-a-component-%28wicket-1.2%29-tf1844050.html#a5033398) > /Gwyn > > On 13/08/06, Mats No

Re: [Wicket-user] Form-question

2006-08-14 Thread Gwyn Evans
Does this thread apply? (http://www.nabble.com/ajax-failed-to-update-a-component-%28wicket-1.2%29-tf1844050.html#a5033398) /Gwyn On 13/08/06, Mats Norén <[EMAIL PROTECTED]> wrote: > What I want the following code to do is to iterate all propertyTypes > and create or lookup the appropriate property

Re: [Wicket-user] Form-question

2006-08-13 Thread Mats Norén
What I want the following code to do is to iterate all propertyTypes and create or lookup the appropriate property on my Person-object and create a TextField for each one. I've defined a model for the propertyTypes and a model for a TeamPerson-object which contains my Person. Everything works fin

Re: [Wicket-user] Form-question

2006-08-04 Thread Mats Norén
Thanks, I'll give it a try! On 8/4/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > yep this will indeed require "model trickery" which is not really that > tricky. > > public class PersonPropertyModel extends AbstractModel { >private final IModel person; >private final IModel type; > >

Re: [Wicket-user] Form-question

2006-08-04 Thread Igor Vaynberg
yep this will indeed require "model trickery" which is not really that tricky.public class PersonPropertyModel extends AbstractModel {   private final IModel person;   private final IModel type;    //imagine a constructor here//   Object getObject(Component c) {  Person p=person.getObject(c

[Wicket-user] Form-question

2006-08-04 Thread Mats Norén
Hi, I've got a form problem that I don't really now how to handle. I've got three entities Person, PersonProperty and PropertyType. A Person has a Set A PersonProperty has a reference to a Person, a PropertyType and contains a value. What I would like to do is to edit a users dynamic properties