Description
In the code of Component:initModel(), when it comes accross an IWrapModel, it always gets its nested model, not considering if this model itself might be an IInheritableModel.
for (Component current = getParent(); current != null; current = current.getParent())
{
// Get model
IModel model = current.getModel();
if (model instanceof IWrapModel)
{ model = ((IWrapModel)model).getNestedModel(); }if (model instanceof IInheritableModel)
{ .... }
}
Would it be correct do make the following correction ?
if (model instanceof IWrapModel && !(model instanceof IInheritableModel))
{ model = ((IWrapModel)model).getNestedModel(); }