in certain cases wicket will set multipart property on your forms for you. eg if it detects a file upload field in the form.
-igor On Mon, Dec 28, 2009 at 2:28 PM, Corbin, James <jcor...@iqnavigator.com> wrote: > A little more information on this issue, > > I observed this error after a dialog is popped up that contains a form > that isn't multipart. The page that launches this dialog also has a > form that IS multipart. The thing I don't understand is how the parent > form has multipart encoding because I never set it. > > J.D. > > -----Original Message----- > From: Corbin, James [mailto:jcor...@iqnavigator.com] > Sent: Monday, December 28, 2009 3:07 PM > To: users@wicket.apache.org > Subject: MultiPartServletRequest Exception > > As recent as the 1.4.4 release (dated December 10th, 2009), I started > getting the following stack trace. > > > > This happens when submitting the form. > > > > Note: This doesn't seem to occur with the same code base running against > Wicket 1.4.1. > > > > Did something break in 1.4.4 relating to this? > > > > java.lang.IllegalStateException: ServletRequest does not contain > multipart content > at > org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.<init >>(MultipartServletWebRequest.java:113) > at > org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.<init >>(MultipartServletWebRequest.java:83) > at > org.apache.wicket.protocol.http.servlet.ServletWebRequest.newMultipartWe > bRequest(ServletWebRequest.java:500) > at > org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1651) > at > org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:850) > at > org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmi > tBehavior.java:135) > at > org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java: > 177) > at > org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDef > aultAjaxBehavior.java:299) > at > org.apache.wicket.request.target.component.listener.BehaviorRequestTarge > t.processEvents(BehaviorRequestTarget.java:119) > at > org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(Ab > stractRequestCycleProcessor.java:92) > at > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java > :1250) > at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) > at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) > > ... > > J.D. Corbin | IQNavigator, Inc. | Technology 6465 Greenwood Village > Blvd, Suite 800, Centennial, CO 80111 | Office 303.563.1503 | Mobile > 303.912.0958 | www.iqnavigator.com | jcor...@iqnavigator.com > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org