Hi,

Wicket automatically uses IFrame (and since some time uses HTML5 FormData)
when the request is Ajax.
I guess your problem is related to this requirement:
https://github.com/apache/wicket/blob/69b2e4c84eb097f55f7b02dfb17c6be057de2f6f/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java#L118-L120
You need to wrap the modal window is inside a form.

On Thu, Jan 3, 2019 at 4:10 PM JavaTraveler <meteor.ei...@gmail.com> wrote:

> Hello everyone,
>
> Happy new Year !!!
>
> I'd like to ask you something for this new year ^^
>
> I wish to upload a .csv file through a FileUploadField, wich is in a Form,
> and in a modal Window. But every try, I get an ajax error : ERROR:
> Wicket.Ajax.Call.failure: Error while parsing response: Could not find root
> <ajax-response> element.
> And then I realised that my FileUpload was always null.
>
> Browsing the forum and other sites, I got that Ajax and FileUploadField
> don't go along that well, and that I should use an IFrame.
>
> But I don't really get what that means. Could anyone help me a bit ?
>
> Thanks a lot in advance.
>
> --
> Sent from:
> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to