I'm trying to convert main menu into components to control visibility of items depending on the user logged in and the context. I use borders to wrap menu item into <li> tags.
The problem is that the rendered markup contains additional <wicket:border> and <wicket:body> tags. They breaks the menu and it is eventually displayed as the simple list. Stripping wicket tags at the application level would obviously solve the problem. But I'd like to keep wicket tags for most markup and strip only for menu. Can I override Border class somehow and strip wicket tags manually?