Using the Wicket Phonebook as a base, I am having problem dispalyng the EditContactPage. To the BasePage I add user and role and a Session to save the login user and role. The listContactPage wich extends the BasePage works fine. The EditContactPage which also extends the Basepage, is mot able to display the EditContactPage, failing to render the Components that are defined in the BasePage.
I would appreciate if someone has any idea of a solution to this problem. BasePage.Html <html> <head> <title>Wicket Phonebook</title> <link rel="stylesheet" type="text/css" href="styles.css"/> </head> <body> <div> Login Name: </div> <div> Login Role: </div> <div wicket:id="status" class="status">[[status messages]]</div> <wicket:child/> </body> </html> ListContactpage: <html xmlns:wicket> <wicket:extend> <form wicket:id="filter-form"> <input type="hidden" name="tracker" wicket:id="focus-tracker"/> <table wicket:id="cars" cellspacing="0" cellpadding="2" class="grid"> </table> [call to focus restore script] <input wicket:id="delete-selected" value="PROCEED TO APPROVAL STAGE" type="submit"/> </form> </wicket:extend> </html> EditContactPage: <html xmlns:wicket> <wicket:extend> <form wicket:id="contactForm"> <table cellspacing="0" cellpadding="2"> <tr> <td><wicket:message key="passenger">[passenger]</wicket:message></td><td><label wicket:id="passenger" size="30"/></td> </tr> <tr> <td><wicket:message key="costcenter">[costcenter]</wicket:message></td><td><input type="text" wicket:id="costcenter" size="5" maxlength="6"/></td> </tr> <tr> <td><wicket:message key="car_no">[car_no]</wicket:message></td><td><label wicket:id="car_no" size="30"/></td> </tr> <tr> <td><wicket:message key="pu_addr">[pu_addr]</wicket:message></td><td><label wicket:id="pu_addr" size="30"/></td> </tr> <tr> <td><wicket:message key="dest_addr">[dest_addr]</wicket:message></td><td><label wicket:id="dest_addr" size="30"/></td> </tr> <tr> <td><wicket:message key="rate">[rate]</wicket:message></td><td><label wicket:id="rate" size="30"/></td> </tr> <tr> <td><wicket:message key="toll">[toll]</wicket:message></td><td><label wicket:id="toll" size="30"/></td> </tr> <tr> <td><wicket:message key="wait">[wait]</wicket:message></td><td><label wicket:id="wait" size="30"/></td> </tr> <tr> <td><wicket:message key="stops">[stops]</wicket:message></td><td><label wicket:id="stops" size="30"/></td> </tr> <tr> <tr> <td><wicket:message key="other">[other]</wicket:message></td><td><label wicket:id="other" size="30"/></td> </tr> <tr> <tr> <td><wicket:message key="wc2pct">[wc2pct]</wicket:message></td><td><label wicket:id="wc2pct" size="30"/></td> </tr> <tr> <tr> <td><wicket:message key="total">[total]</wicket:message></td><td><label wicket:id="total" size="10"/></td> </tr> <tr> <td> </td><td><input type="submit" wicket:id="save" value="[save]"> <input type="submit" wicket:id="cancel" value="[cancel]"/></td> </tr> </table> </form> </wicket:extend> </html> 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 = status]]2. [Component id = Name]3. [Component id = Role]Root cause:org.apache.wicket.WicketRuntimeException: 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 = status]]2. [Component id = Name]3. [Component id = Role] at org.apache.wicket.Page.checkRendering(Page.java:1182) at org.apache.wicket.Page.renderPage(Page.java:922) at org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:167) at org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) at java.lang.Thread.run(Thread.java:619) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/The-component-s-below-failed-to-render-BasePage-components-are-not-rendering-tp3234751p3234751.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