RE: [Wicket-user] Newbie problem with Model-s

2005-07-05 Thread Igor Vaynberg
Martin, The problem is here: add(new TestForm(testForm, new Model(person))); You are creating a Model, when in fact you should be creating a CompoundPropertyModel. Components that do not have models ( ie your RequiredTextField ) only inherit models that are of type CompoundPropertyModel or

Re: [Wicket-user] Newbie problem with Model-s

2005-07-05 Thread Eelco Hillenius
That is because you did override a method, Form.onFormSubmitted, that was not meant for that. We try to shield you from this kind of errors as much as possible with Wicket, but sometimes that is not possible. In this case we couldn't make onFormSubmitted not final as we needed to override this

RE: [Wicket-user] Newbie problem with Model-s

2005-07-05 Thread Igor Vaynberg
To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Newbie problem with Model-s I'm afraid that is not true. I was kind of afraid people might think that; it's one reason why I prefer explicit to implicit behaviour. The CompoundPropertyModel is there for convenience really. It allows

Re: [Wicket-user] Newbie problem with Model-s

2005-07-05 Thread Johan Compagner
something? Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Eelco Hillenius Sent: Tuesday, July 05, 2005 9:03 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Newbie problem with Model-s I'm afraid that is not true. I was kind