This issue seems to pop up in our environment from time to time and trying to 
figure out how to fix it once and for all.

We have a page with a form that pops up modal window with a form specified as 
well.

When we try to submit, we get the following exception:

java.lang.IllegalStateException: ServletRequest does not contain multipart 
content. One possible solution is to explicitly call Form.setMultipart(true), 
Wicket tries its best to auto-detect multipart forms but there are certain 
situation where it cannot.
at 
org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.<init>(MultipartServletWebRequest.java:113)
at 
org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.<init>(MultipartServletWebRequest.java:83)
at 
org.apache.wicket.protocol.http.servlet.ServletWebRequest.newMultipartWebRequest(ServletWebRequest.java:500)
at org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1668)
at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:862)
at 
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:135)
at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
...

Setting Form.setMultipart(true) on either form has no affect.

We are running Wicket Version 1.4.7.

Is there a fix for this issue?

Is this JIRA Issue related??? https://issues.apache.org/jira/browse/WICKET-2749


Reply via email to