You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Daniel Süpke (Commented JIRA)" <ji...@apache.org> on 2012/01/04 11:33:38 UTC

[jira] [Commented] (WICKET-2779) Submit a nested form via ajax to upload a file inside modal window does not work on IE.

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

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

Thanks for the reply, I'll start working on that quickstart, will take me some time, however.
                
> 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