Hi,
Still working on the migration to 7.
We used this pattern with Wicket 6:
new StringResourceModel(propertyModel.getObject(), null,
propertyModel.getObject(), objectModel, secondaryObjectModel))
which was directed to the following constructor:
StringResourceModel(key, model, defaultValue, Object... parameters)
When migrating to 7, this pattern is silently directed to the following
constructor:
StringResourceModel(key, model, Object... parameters)
thus the replacements are wrong.
The fact that our application is silently broken is kinda annoying.
I ended up moving to:
new StringResourceModel(propertyModel.getObject(), (IModel<?>) null,
propertyModel, new Object[] { objectModel, secondaryObjectModel }))
I don't know if there is something to do about it but I thought I might as
well get it out here.
--
Guillaume