You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Alex Grant (JIRA)" <ji...@apache.org> on 2009/12/16 04:09:18 UTC

[jira] Commented: (WICKET-2621) Ajax buttons inside ModalWindows don't submit properly

    [ https://issues.apache.org/jira/browse/WICKET-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791156#action_12791156 ] 

Alex Grant commented on WICKET-2621:
------------------------------------

I don't know for certain that this appeared in 1.4.4, as we have upgraded directly from 1.4.1. WICKET-2553 was preventing us from using 1.4.2 and 1.4.3.

> Ajax buttons inside ModalWindows don't submit properly
> ------------------------------------------------------
>
>                 Key: WICKET-2621
>                 URL: https://issues.apache.org/jira/browse/WICKET-2621
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4.4
>            Reporter: Alex Grant
>
> I have a ModalWindow that contains an IndicatingAjaxButton. When I click the button, I get a big Java error complaining that the form submit wasn't multipart.
> Digging into the javascript in wicket-ajax.js, I found this from line 1102 in the method handleMultipart
> {code}
> multipart=multipart||form.enctype=="multipart/form-data";
> if (multipart==false) {
>      // nothing to handle
>     return false;
>  }
> {code}
> When this executed, multipart was false, and enctype was "" and therefore the submit aborted. This may be the cause.
> Here's the Java stacktrace
> {noformat}
> 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.extensions.ajax.markup.html.form.upload.MultipartRequest.<init>(MultipartRequest.java:41)
> 	at org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadWebRequest.newMultipartWebRequest(UploadWebRequest.java:66)
> 	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(AjaxFormSubmitBehavior.java:135)
> 	at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
> 	at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299)
> 	at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
> 	at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.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)
> 	at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
> 	at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
> 	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.