Unexpected RuntimeException
WicketMessage: Unable to find component with id 'countryLanguageChoice' in [MarkupContainer [Component id = homePageMenuPanel, page = humanresource.wicket.home.HomePage, path = 14:homePageMenuPanel.HomePageMenuPanel, isVisible = true, isVersioned = false]]. This means that you declared wicket:id=countryLanguageChoice in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match.[markup = file:/C:/workspace/HumanResourcesCompetenceMgmt/WEB-INF/classes/humanresource/wicket/home/HomePageMenuPanel.html<html><wicket:panel> <div class="menu"> <ul> <li>
Home </li> <li>
HumanResource </li> <li>
Model </li> <li>
News </li> <li>
<wicket:message key="home.menu.signUp"/> </li> <li>
<wicket:message key="home.menu.signOut"/> </li> <!-- <li>
Herve </li> -->
To be replaced dynamically by the language choice. </ul></div> </wicket:panel></html>, index = 29, current = '
' (line 36, column 4)]Root cause:org.apache.wicket.markup.MarkupException: Unable to find component with id 'countryLanguageChoice' in [MarkupContainer [Component id = homePageMenuPanel, page = humanresource.wicket.home.HomePage, path = 14:homePageMenuPanel.HomePageMenuPanel, isVisible = true, isVersioned = false]]. This means that you declared wicket:id=countryLanguageChoice in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match.[markup = file:/C:/workspace/HumanResourcesCompetenceMgmt/WEB-INF/classes/humanresource/wicket/home/HomePageMenuPanel.html<html><wicket:panel> <div class="menu"> <ul> <li> Home </li> <li> HumanResource </li> <li> Model </li> <li> News </li> <li> <wicket:message key="home.menu.signUp"/> </li> <li> <wicket:message key="home.menu.signOut"/> </li> <!-- <li> Herve </li> --> To be replaced dynamically by the language choice. </ul></div> </wicket:panel></html>, index = 29, current = '' (line 36, column 4)] at org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:472) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1228) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1348) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:624) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:112) at org.apache.wicket.Component.renderComponent(Component.java:2151) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1295) at org.apache.wicket.Component.render(Component.java:1998) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1181) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1311) at org.apache.wicket.Page.onRender(Page.java:1367) at org.apache.wicket.Component.render(Component.java:1998) at org.apache.wicket.Page.renderPage(Page.java:863) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1097) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1166) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245) at org.apache.wicket.RequestCycle.request(RequestCycle.java:489) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:319) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:169) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:790) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
Markup
The problem is in "file:/C:/workspace/HumanResourcesCompetenceMgmt/WEB-INF/classes/humanresource/wicket/home/HomePageMenuPanel.html":
<html><wicket:panel> <div class="menu"> <ul> <li> Home </li> <li> HumanResource </li> <li> Model </li> <li> News </li> <li> <wicket:message key="home.menu.signUp"/> </li> <li> <wicket:message key="home.menu.signOut"/> </li> <!-- <li> Herve </li> --> To be replaced dynamically by the language choice. </ul></div> </wicket:panel></html>