I have a form in a panel inside the home page and all of its fields are
filled out with the correct values when the page is displayed. Obviously
being inside the form the Java object hierarchy matches the HTML
hierarchy.
However when you submit the form Wicket says:
Last cause: Could not find component
'body:_wicket_child2:_wicket_extend3:welcomePanel:loginForm' on page
'class com.sas.av.ui.wicket.templates.original.HomePage
How could the loginForm component be positioned correctly in the Java
component hierarchy when displaying but not when submitting?
Root cause:
org.apache.wicket.request.handler.ComponentNotFoundException: Could not
find component
'body:_wicket_child2:_wicket_extend3:welcomePanel:loginForm' on page
'class com.sas.av.ui.wicket.templates.original.HomePage
at
org.apache.wicket.request.handler.PageAndComponentProvider.getComponent(
PageAndComponentProvider.java:181)
at
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.getCom
ponent(ListenerInterfaceRequestHandler.java:92)
at
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respon
d(ListenerInterfaceRequestHandler.java:239)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(Req
uestCycle.java:781)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStac
k.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:2
55)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle
.java:212)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(Req
uestCycle.java:283)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter
.java:185)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:
241)
at
com.sas.av.ui.wicket.templates.original.MyWicketFilter.doFilter(Pagebloo
mFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
at
com.sas.av.model.context.UrlRedirectorFilter.doFilter(UrlRedirectorFilte
r.java:77)
Using latest snapshot as of about 1 hour ago when I pull all changes on
wicket-1.5.x branch.
Yours sincerely,
Chris Colman
Pagebloom Team Leader,
Step Ahead Software
pagebloom - your business & your website growing together
Sydney: (+61 2) 9656 1278 Canberra: (+61 2) 6100 2120
Email: [email protected] <mailto://[email protected]>
Website:
http://www.pagebloom.com <blocked::http://www.pagebloom.com/>
http://develop.stepaheadsoftware.com
<blocked::http://develop.stepaheadsoftware.com/>