the second level panel does inherit it yet But it will not give you the object thats inside the first panel. CPM is used that child components can have sub objects/properties of that main object by using the child components id as the property
if you want to inherited really the same component over all the childs you have to create your own InheritedModel johan On Wed, Jul 9, 2008 at 9:35 AM, ZedroS <[EMAIL PROTECTED]> wrote: > > Hi > > I have a compoundpropertymodel (cpm for the rest of the mail) set on my > first level panel, then in one added "second level panel" I tried to do > getModelObject(); which returned null. > > How comes ? I was expecting the cpm to be "inherited" in all my sub > components... Is it possible to do so ? How should I do otherwise ? > > For the time being, I give a reference to the model at each sub component > (panels, forms...) and directly access it, but I find it kind of "not > proper". > > Thanks in advance > > ++ > zedros > -- > View this message in context: > http://www.nabble.com/Direclty-using-parent%27s-compoundpropertymodel-not-possible---tp18356056p18356056.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
