I wonder if someone can help. In my code, I have a java class which extends Panel and associated html. This contains, among other things, a Panel object "mainPanel". Everything works fine. I now want to enclose the mainPanel object in a WebMarkupContainer. To do so, I declare an instance variable protected WebMarkupContainer mainPageContainer; and in the constructor:
mainPageContainer = new WebMarkupContainer("pageContainer"); add(mainPageContainer); mainPageContainer.add(mainPage); In the html page, the line: <div class="mainPageDiv" wicket:id="mainPage"></div> is replaced with: <div wicket:id=pageContainer"><div class="mainPageDiv" wicket:id="mainPage"></div></div> Wicket throws the following error: WicketMessage: The component(s) below failed to render: A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). 1. [MarkupContainer[Component id= mainPage]] 2. [MarkupContainer[Component id= pageTitle]] I cannot see an obvious error and would really appreciate help! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WebMarkupContainer-issue-tp3063886p3063886.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org