Re: FileUploadField in a form in a modalWindow

2019-01-09 Thread Martin Grigorov
The problem must be somewhere else! "localhost" most probably is not the problem! On Wed, Jan 9, 2019 at 3:20 PM JavaTraveler wrote: > Hi > > So, apparently, the solution is that the fileUploadField in a form in a > modalWindow doesn't work when used on a local server (maybe localhost ... > is

Re: FileUploadField in a form in a modalWindow

2019-01-09 Thread JavaTraveler
Hi So, apparently, the solution is that the fileUploadField in a form in a modalWindow doesn't work when used on a local server (maybe localhost ... is causing the trouble). Thank you a lot for your time. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

Re: FileUploadField in a form in a modalWindow

2019-01-07 Thread Martin Grigorov
https://docs.oracle.com/javaee/7/api/javax/servlet/http/HttpServletResponse.html in an interface that is implemented by Glassfish, Tomcat, Jetty, and such. If it is not Wicket that calls its #sendError() method then it is something else. By putting a breakpoint at Glassfish

Re: FileUploadField in a form in a modalWindow

2019-01-07 Thread JavaTraveler
I tried the first part and no when I click the button, none of those is called. But I don't undestand what you mean by debugging glassfish's ServletHttpResponse implementation. Could you be more specific ? -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

Re: FileUploadField in a form in a modalWindow

2019-01-04 Thread Martin Grigorov
Is WicketFilter#doFilter() method called ? Can you put a breakpoint in it and see whether it stops there ? If it is then put breakpoints also in ServletWebResponse setStatus() and sendError() methods. If it is not Wicket then you will have to debug Glassfish's ServletHttpResponse implementation

Re: FileUploadField in a form in a modalWindow

2019-01-04 Thread JavaTraveler
The response : 400 Bad Request Connection close Content-Length 1082 Content-Typetext/html;charset=ISO-8859-1 DateFri, 04 Jan 2019 07:54:37 GMT Server GlassFish Server Open Source Edition 4.1 X-Powered-By Servlet/3.1 JSP/2.3 (GlassFish… Java/Oracle Corporation/1.8) What's weird is

Re: FileUploadField in a form in a modalWindow

2019-01-03 Thread Martin Grigorov
Check in your browser dev tools what is the HTTP response code and body. On Fri, Jan 4, 2019, 09:30 JavaTraveler Hi. > > I see, thanks for the anser. > But my modal window is already inside a form. > > -- > Sent from: > http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html > >

Re: FileUploadField in a form in a modalWindow

2019-01-03 Thread JavaTraveler
Hi. I see, thanks for the anser. But my modal window is already inside a form. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: FileUploadField in a form in a modalWindow

2019-01-03 Thread Martin Grigorov
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:

FileUploadField in a form in a modalWindow

2019-01-03 Thread JavaTraveler
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