create a quickstart and attach it to a jira issue.

-igor

On Mon, Dec 28, 2009 at 3:35 PM, Corbin, James <[email protected]> wrote:
> Upgrading to 1.4.5 does not fix the problem.  Something else is amiss here.
>
> I've even tried explicitly setting the form to multi-part (e.g., 
> myForm.setMultiPart(true))
>
> More investigation is needed.
>
> j.D.
>
> -----Original Message-----
> From: Corbin, James [mailto:[email protected]]
> Sent: Monday, December 28, 2009 4:11 PM
> To: [email protected]
> Subject: RE: MultiPartServletRequest Exception
>
> Yep, I read about that in the jira issue wicket-2621.
>
> The parent form has a fileupload field and I verified the generated HTML 
> defines the encoding on that form as multipart.
>
> The dialog that is popped up from that panel, also defines a form, in which 
> wicket converts to a div (can't have nested forms in HTML).  The dialog popup 
> has does have an ajax button that submits the form, but at this point, the 
> form that is submitted is no longer multipart which is the cause of the error.
>
> It sounds like it should be fixed in 1.4.5 (jira issue wicket-2621) which I 
> am trying again now with clean builds.
>
> J.D.
>
> -----Original Message-----
> From: Igor Vaynberg [mailto:[email protected]]
> Sent: Monday, December 28, 2009 4:00 PM
> To: [email protected]
> Subject: Re: MultiPartServletRequest Exception
>
> 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 <[email protected]> 
> 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:[email protected]]
>> Sent: Monday, December 28, 2009 3:07 PM
>> To: [email protected]
>> 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 | [email protected]
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to