thanks it worked! On Tue, Jan 25, 2011 at 2:46 PM, Martin Grigorov <[email protected]> wrote: > I guess this is Wicket 1.5 > Check the migration page. There is an entry for Border.addToBody() > > On Tue, Jan 25, 2011 at 2:39 PM, Christian Grobmeier > <[email protected]>wrote: > >> Hi, >> >> I could create a page which is rendered with in a border. But when I >> am following the Navomatic-example I failed when I added a component >> to the border itself. >> >> In my NavBorder.html: >> <wicket:border> >> <wicket:link> >> <a href="Page1.html">Page1</a><br/> >> <a href="Page2.html">Page2</a><br/> >> <a href="Page3.html">Page3</a> >> </wicket:link> >> >> <wicket:body /> >> >> <span wicket:id = "navigationBorder"> >> <b>Navigation Links</b> >> </span> >> </wicket:border> >> >> In my code >> >> class NavBorder extends Border >> ... >> add(new BoxBorder("navigationBorder")); >> >> It looks like the example but fails with the error: >> >> occurred >> org.apache.wicket.markup.MarkupException: Unable to find component >> with id 'navigationBorder' in [TabulatorNavigationBorder [Component id >> = navigationBorder]]. >> This means that you declared wicket:id=navigationBorder in your >> markup, but that you either did not add the component to your page at >> all, or that the hierarchy does not match. >> >> Without the "navigationBorder" it works as expected. >> >> Any ideas what I am missing? >> >> Thanks >> Christian >> >> >> >> -- >> http://www.grobmeier.de >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >
-- http://www.grobmeier.de --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
