hmmm this is a tough one, it really depends on the definition of innermost model. the nomenclature in place is not the best, but its very difficult to come up with good words for all this stuff we are doing with models.
it really depends on how transparent we want ichainingmodel to be. so far innermost model only unwraps layer that wouldve been placed there automatically by wicket, and i am inclined to say it should probably stay that way. ichainingmodel is a convinience interface - it brings a standard to a common type of model - that decorates another. i dont know if we should be unwrapping it. in johan's example MyChainingModel is probably opaque to wicket, im not sure hibernatemodel should be returned there. -igor On 7/20/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Component comp = new Component(new MyChainingModel(new HibernateModel(new > Pojo()))); > > IModel model = comp.getInnerMostModel() Naively, just looking at the code, I would expect the HibernateModel to return. Eelco
