Re: Ajax submit form with empty file input

2007-08-19 Thread Ryan Holmes
Did you try changing the visibility of your FileUploadField? If it's not visible, it won't be in the markup and won't be submitted. Not sure if Wicket will mark the form as multipart anyway, but it's worth a try. -Ryan On Aug 13, 2007, at 9:56 AM, Carlos Pita wrote: Igor, is there a more

Re: Ajax submit form with empty file input

2007-08-13 Thread Carlos Pita
Igor, is there a more or less provided mechanism to avoid wicket js serialization of certain fields (file inputs in this case) upon form submission? I mean something as a workaround that won't be a complete hack and will be relatively easy to implement. updating behaviors serialize just single fiel

Re: Ajax submit form with empty file input

2007-08-13 Thread Igor Vaynberg
no, ajax submits do not support multipart forms. -igor On 8/13/07, Carlos Pita <[EMAIL PROTECTED]> wrote: > > Hi all, > > is it possible to ajax submit a form that has a file input between its > fields, even if this input is always empty at the time of submission? > > For example, the following

Ajax submit form with empty file input

2007-08-13 Thread Carlos Pita
Hi all, is it possible to ajax submit a form that has a file input between its fields, even if this input is always empty at the time of submission? For example, the following example throws a 'ServletRequest does not contain multipart content' exception when clicking the ajaxSubmit button, even