Description
I can't tell since extacly for which version this does not work, or if it's a long time bug, but it does not work the current trunk (27 nov 2007).
Example markup :
<!-- This is a non transparent border -->
<span wicket:id="actionsBorder">
<wicket:enclosure child="newLink">
<div class="action">
<a wicket:id="newLink"><img wicket:id="newButton" /></a>
</div>
</wicket:enclosure>
</span>
always throws a MarkupException during onComponentTagBody method of Enclosure class.
It seems that the child lookup based on the 'child' parameter of the Enclosure tag is erroneous : when it asks its parent to resolve the component with childId, it only finds the Enclosure element, thus failing to locate the child BELOW enclosure.