This is not something we can decide. It is a limitation of Ajax, HTML, Browsers.

Martijn

On 4/29/08, nanotech <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>
>  Will there be support in future for Ajax + multipart forms?
>
>  Thanks,
>  RG
>
>
>
>  igor.vaynberg wrote:
>  >
>  > it is a known limitation...you cannot mix ajax and multipart forms..
>  >
>  > -igor
>  >
>  >
>  > On Tue, Feb 26, 2008 at 3:40 PM, Dan Kaplan <[EMAIL PROTECTED]>
>  > wrote:
>  >> Hello,
>  >>
>  >>  If I use: AjaxFormValidatingBehavior.addToAllFormComponents(form,
>  >> "onblur");
>  >>  On a form that has a fileuploadfield, it throws an exception when I blur
>  >>  another field.  Is there a work around/solution to this (for now, I'd be
>  >>  happy to only validate the one field I want)?  Here is the stack trace:
>  >>
>  >>  java.lang.IllegalStateException: ServletRequest does not contain
>  >> multipart
>  >>  content
>  >>      at
>  >>
>  >> 
> org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.<init>(Mu
>  >>  ltipartServletWebRequest.java:90)
>  >>      at
>  >>
>  >> 
> org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadWebRequest$M
>  >>  ultipartRequest.<init>(UploadWebRequest.java:97)
>  >>      at
>  >>
>  >> 
> org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadWebRequest.n
>  >>  ewMultipartWebRequest(UploadWebRequest.java:74)
>  >>      at
>  >>  org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1414)
>  >>      at
>  >>  org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:740)
>  >>      at
>  >>
>  >> 
> org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBeh
>  >>  avior.java:127)
>  >>      at
>  >>
>  >> 
> org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:161)
>  >>      at
>  >>
>  >> 
> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefault
>  >>  AjaxBehavior.java:288)
>  >>      at
>  >>
>  >> 
> org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.pr
>  >>  ocessEvents(BehaviorRequestTarget.java:100)
>  >>      at
>  >>
>  >> 
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(Abstra
>  >>  ctRequestCycleProcessor.java:90)
>  >>      at
>  >>
>  >> 
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:116
>  >>  6)
>  >>      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1241)
>  >>      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316)
>  >>      at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>  >>      at
>  >>
>  >> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)
>  >>      at
>  >>
>  >> 
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
>  >>
>  >>
>  >>
>  >>  ---------------------------------------------------------------------
>  >>  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]
>  >
>  >
>  >
>
>
> --
>  View this message in context: 
> http://www.nabble.com/AjaxFormValidatingBehavior-on-a-form-with-a-fileuploadfield-crashes-tp15702794p16963149.html
>  Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to