FileUpload can't be done using ajax. Don't use Ajax submit button with a file upload field in a form.
Martijn On 2/8/07, Otan <[EMAIL PROTECTED]> wrote: > I have a Form within a panel within a page. That form has one > FileUploadField and I based that form from the wicket-examples. The form > works well (of course, that's a copycat of the one from wicket-examples). > > But now I have to use AjaxSubmitButton for that form, and now, It doesn't > work anymore. I don't have any clue > why I'm getting the following Exception when I click that AjaxSubmitButton. > > SEVERE: ServletRequest does not contain multipart content > java.lang.IllegalStateException: ServletRequest does not contain multipart > content > at > wicket.protocol.http.servlet.MultipartServletWebRequest.<init>(MultipartServletWebRequest.java:86) > at > wicket.protocol.http.servlet.ServletWebRequest.newMultipartWebRequest > (ServletWebRequest.java:258) > at > wicket.markup.html.form.Form.handleMultiPart(Form.java:1176) > at > wicket.markup.html.form.Form.onFormSubmitted(Form.java:359) > at wicket.ajax.form.AjaxFormSubmitBehavior.onEvent > (AjaxFormSubmitBehavior.java:133) > at > wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:164) > at > wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:217) > at > wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:97) > at > wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java > :68) > at > wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:56) > at > wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:938) > at > wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:978) > at wicket.RequestCycle.step(RequestCycle.java:1054) > at wicket.RequestCycle.steps(RequestCycle.java:1125) > at wicket.RequestCycle.request(RequestCycle.java:470) > at > wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:232) > at > wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter > (MonitorFilter.java:368) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java > :173) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > at org.apache.catalina.core.StandardHostValve.invoke > (StandardHostValve.java:126) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) > at > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection > (Http11BaseProtocol.java:664) > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java > :80) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > at java.lang.Thread.run(Thread.java:595) > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now! http://wicketframework.org ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
