Is there a wicket version where it works ? I tried with 1.4.6 and 1.4.7
but i get the same error which James got.
My use case : I'm trying to submit a form via ajax to upload a file
inside modal window.
After debug:
FileUploadBase.isMultipartContent get false because
if (contentType.toLowerCase().startsWith(MULTIPART)) - contentType =
application/x-www-form-urlencoded
James Carman pisze:
You're trying to submit a form via ajax to upload a file?
On Tue, Mar 9, 2010 at 4:26 PM, Corbin, James <jcor...@iqnavigator.com> wrote:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org