Description
This issue is a continuation of cases WICKET-3947 and WICKET-4700. InlineEnclosures have problems especially in 1.4.x branch. InlineEnclosures do not function on pages that use wicket:extend and wicket:child. Also nested InlineEnclosures and components inside InlineEnclosures have problems with Ajax.
There is also another problem with InlineEnclosures in 1.4.x branch. If InlineEnclosures are used on a page that is not cached (i.e. page that implements IMarkupCacheKeyProvider with method getCacheKey returning null), InlineEnclosures will get new id in markup every time page is reloaded. As a result markup is not found for InlineEnclosures previously added to the page, as they have ids that were generated first time the page was loaded.