When I receive such an error it is often because I had not refreshed or 
reloaded the altered html page. Have you?

On Monday 29 November 2010 17:32:54 drf wrote:
> 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!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to