But people do use it for example CompoundPropertyModel cpm = new CompoundPropertyModel(new HibernateObjectModel(myDbObject)); cpm.getNestedModel().setId(xx);
But for this we have now IChainedModel so people who want to get the inner model can do that by implementing that interface. johan On 8/2/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > On 8/1/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > > Can someone explain to me the very essence of nested models > (getNestedModel) > > in IModel > > We weren't that clear on it either, which is why we removed it from > Wicket 1.3. :) > > > i do always encounter getNestedModel() then i blindly always return > null. > > But am just curious as to why their is nested model (is it a way to > chain > > models?) > > It was really only used by a couple of models, notably property models > and string resource models, which can both work on other models. So > you can let it return null without having to worry about it :) > > Eelco > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
