Re: getWrappedModel and getChainedModel (Component.getInnerMostModel())

2007-07-20 Thread Johan Compagner
nope not the IChainingModel i think that was igor. And also the getInnerMostModel() code is something i think from jonathan. And IChainingModel is much more the replacement of IModel.getNestedModel() then that IWrapModel is.. (thats really a new thing in 1.3) So what do people expect here:

Re: getWrappedModel and getChainedModel (Component.getInnerMostModel())

2007-07-19 Thread Eelco Hillenius
we also have IChainingModel shouldn't we also test for that? because çurrently the behavior is that we only test for WramModels to get to the innermost model but what is then the big difference with IChainingModel? Hey, didn't you code that stuff? :) Eelco

getWrappedModel and getChainedModel (Component.getInnerMostModel())

2007-07-18 Thread Johan Compagner
we have this code in Component: protected final IModel getInnermostModel(final IModel model) { IModel nested = model; while (nested != null nested instanceof IWrapModel) { final IModel next = ((IWrapModel)nested).getWrappedModel(); if (nested ==