I show a message box via the Form.onError override and this works once
but when the user hits ok and then submit again we get the following
error:
 
It looks like there was a similar bug fixed in 1.4.13 but I still see
this error with 1.4.13.
WicketMessage: Could not find Form parent for [MarkupContainer
[Component id = okBtn]]
Root cause:
org.apache.wicket.WicketRuntimeException: Could not find Form parent for
[MarkupContainer [Component id = okBtn]]
     at
org.apache.wicket.markup.html.form.FormComponent.getForm(FormComponent.j
ava:737)
     at
org.apache.wicket.markup.html.form.Form$2.component(Form.java:611)
     at
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:899
)
     at
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:914
)
     at
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:914
)
     at
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:914
)
     at
org.apache.wicket.markup.html.form.Form.findSubmittingButton(Form.java:6
04)
     at
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:899)
     at
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmi
tBehavior.java:135)
     at
org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:
177)
     at
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDef
aultAjaxBehavior.java:300)
     at
org.apache.wicket.request.target.component.listener.BehaviorRequestTarge
t.processEvents(BehaviorRequestTarget.java:142)
     at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(Ab
stractRequestCycleProcessor.java:92)
     at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
:1250)
     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436)
     at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
     at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484
)
     at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:
317)

Reply via email to