You probably have multiple wicket:id="flightSearchResultValidation" in the same markup file at the same level in the component hierarchy. That is no longer possible. We are now more strict, enforcing a 1:1 between component hierarchy and markup. Simply rename one of the flightSearchResultValidation ids in markup and add new component to your hierarchy with the new name (leaving the other one).
IMO the exception message says it pretty precisely The component [MarkupContainer [Component id = flightSearchResultValidation, page = com.xmltravel.fab1.wicket.flights.FlightSearchResultPage, path = 4:flightSearchResultValidation.JavaScriptReference, isVisible = true, isVersioned = true]] has the same wicket:id as another component already added at the same level Juergen On 3/31/06, Dipu <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying to migrate my application to the current version of wicket. > When i run the application i am getting a markup exception > > wicket.markup.MarkupException: The component [MarkupContainer [Component id > = flightSearchResultValidation, page = > com.xmltravel.fab1.wicket.flights.FlightSearchResultPage, > path = 4:flightSearchResultValidation.JavaScriptReference, > isVisible = true, isVersioned = true]] has the same wicket:id as another > component already added at the same level. > > My code is still workig perfectly in the old version and i have not changed > any thing in my java code as well as in the mark up. As far as i can see i > am adding the JavaScriptReference only once. > Can anyone throw some light into this. > > Has it got to do with the version of the Wicket i grabbed from CVS. > > Thanks > Dipu > > Below is the full stack trace if it helps > > > > Root cause: > > wicket.markup.MarkupException: The component [MarkupContainer [Component id > = flightSearchResultValidation, page = > com.xmltravel.fab1.wicket.flights.FlightSearchResultPage, > path = 4:flightSearchResultValidation.JavaScriptReference, > isVisible = true, isVersioned = true]] has the same wicket:id as another > component already added at the same level > at wicket.Page.componentRendered(Page.java:924) > at wicket.Component.rendered(Component.java:1668) > at wicket.Component.render(Component.java:1522) > at > wicket.MarkupContainer.renderNext(MarkupContainer.java:1224) > at > wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:893) > at > wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:813) > at > wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:111) > at wicket.Component.renderComponent(Component.java:1605) > at wicket.MarkupContainer.onRender(MarkupContainer.java:823) > at wicket.Component.render(Component.java:1519) > at wicket.Component.render(Component.java:1488) > at wicket.MarkupContainer.autoAdd(MarkupContainer.java:181) > at > wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:75) > at > wicket.MarkupContainer.renderNext(MarkupContainer.java:1251) > at > wicket.MarkupContainer.renderAll(MarkupContainer.java:840) > at wicket.Page.onRender(Page.java:848) > at wicket.Component.render(Component.java:1519) > at wicket.Page.doRender(Page.java:390) > at > wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:148) > at > wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:60) > at > wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) > at > wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) > at > wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:824) > at > wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:851) > at wicket.RequestCycle.step(RequestCycle.java:931) > at wicket.RequestCycle.steps(RequestCycle.java:1005) > at wicket.RequestCycle.request(RequestCycle.java:451) > at > wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208) > at > wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:246) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:616) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) > at > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) > at > org.mortbay.http.HttpContext.handle(HttpContext.java:1565) > at > org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635) > at > org.mortbay.http.HttpContext.handle(HttpContext.java:1517) > at > org.mortbay.http.HttpServer.service(HttpServer.java:954) > at > org.mortbay.http.HttpConnection.service(HttpConnection.java:816) > at > org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) > at > org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) > at > org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) > at > org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at > org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user