[ 
https://issues.apache.org/jira/browse/WICKET-2779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177671#comment-13177671
 ] 

Daniel Süpke commented on WICKET-2779:
--------------------------------------

This bug still occurs for me. I got a modal dialog with a fileupload, placed in 
a nested form within a table. Wicket however puts the dialog outside of the 
table, but still replaces the form tag with div - so the fileupload no longer 
has a form tag around it. Even setting form.setMultiPart(true); results in an 
error (i.e. the stacktrace in the original post), thus. Any idea?
                
> Submit a nested form via ajax to upload a file inside modal window does not 
> work on IE.
> ---------------------------------------------------------------------------------------
>
>                 Key: WICKET-2779
>                 URL: https://issues.apache.org/jira/browse/WICKET-2779
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.4
>         Environment: Windows XP, IE7, IE8
>            Reporter: Michał Letyński
>            Assignee: Igor Vaynberg
>             Fix For: 1.4.8, 1.5-M1
>
>         Attachments: modalproject.zip
>
>
> I'm trying to submit a nested form via ajax to upload a file  inside modal 
> window.
> I get an 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)
>  
> After debug:
> FileUploadBase.isMultipartContent get false because
> if (contentType.toLowerCase().startsWith(MULTIPART))   - contentType = 
> application/x-www-form-urlencoded 
> It only occurs on IE browser (both IE7 and IE8).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to