...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
--
View this message in context:
http://www.nabble.com/2-new-models-for-wicket-tp25616506p25625683.html
Sent from the Wicket - User mailing list archive at Nabble.com
heyho everyone,
since i'm not satisfied with the provided models, i started to write my own.
the current behaviour with compoundproperty model is, that compoundproperty
model serves as host for an object and components can use properties of that
host by having the correct id that has to equal
Puhh, very long article.
Did you've tried
MyDomainModel myDomainModel;
CompoundPropertyModel model = new CompoundPropertyModel(myDomainModel);
AContainer.add(new MarkupContainer(new PropertyModel(model,
theGetPropertyInMyDomainModelToSubModel));
If MyDomainModel provides an accessor for
or new CompoundPropertyModel(new PropertyModel(model,
theGetPropertyInMyDomainModelToSubModel)) which basically creates a
CPM that refers to a property of another CPM.
personally i do not like CPMs, they are a shortcut that gets abused
way too often :)
-igor
On Fri, Sep 25, 2009 at 11:21 AM,