add(new TextFiedl("id"));
IF we did new Model() in the constructor?
Because how would you get the data back from that text field?
Are you going to keep references to that textfield and then ask when a form submits its data?
That doesn't seems to much sense to me.
I think you don't find much code for formcomponentst that does this:
new TextField("id", new Model()); because it really doesn't make much sense
you want the data to go to somewhere where you can read it.
And you are right easy things easy. And that is just the way it works now
almost all larger apps use CompoundModels because that is so easy to use and not so verbose.
just give a form a compound model and then all the form components can just be created without a model.
How would you do it in this case if we did new Model()?
Then it would suddenly be much harder to do or much mor verbose again.
johan
On 1/20/06,
Rosenstrauch, David <[EMAIL PROTECTED]> wrote:
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Johan Compagner
Sent: Friday, January 20, 2006 2:05 PM
To: [email protected]
Subject: Re: [Wicket-user] RE: span tag clarificationRead what igor says in its second point!:
2) null models have a special meaning. if the component has a null model it will try to search up the component hierarchy tree to find a parent with a model that implements ICompoundModel and will then use that model as its own. this is useful for models like CompoundPropertyModel. see this discussion for details:
http://www.mail-archive.com/[email protected]/msg08877.html[Rosenstrauch, David]Well, fair enough.Only thing I would say is that IMO I like frameworks that "make easy things easy, and difficult things possible". Seems to me that usability-wise, this isn't really optimized to make the easy case easy.Just my $0.02.DR==============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================
