Suppose you have a web site with a logo in the header which links to the home page. On the home page itself, you have the same logo and the link, but you also want to wrap the logo with an H1 tag.
(Or maybe it's not that you have a burning desire to do this, but your client has requested it.) In my Wicket inexperiencedness, I might try this: <wicket:enclosure child="homePageHomeLink"> <h1><a wicket:id="homePageHomeLink" title="Home" href="#">ABC, Inc.</a></h1> </wicket:enclosure> <wicket:enclosure child="homeLink"> <a wicket:id="homeLink" title="Home" href="#">ABC, Inc.</a> </wicket:enclosure> And then on the Java side, set one or the other to be invisible. That works, but I'd like to know if there's a better way. Thank you!