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:03:18 UTC

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

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.


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

Posted by "Alex Grant (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791607#action_12791607 ] 

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

Thanks. I have attached a zipped standalone Eclipse project.
Visit the URL
http://localhost:8080/wicket-modal-dialog/app/home
Click Next, click to open the popup, then click OK on the popup.

> 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
>            Assignee: Igor Vaynberg
>         Attachments: wicket-2621-sample-app.zip
>
>
> 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.


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

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg reopened WICKET-2621:
-----------------------------------


now we have a testcase

> 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
>            Assignee: Igor Vaynberg
>         Attachments: wicket-2621-sample-app.zip
>
>
> 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.


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

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791718#action_12791718 ] 

Igor Vaynberg commented on WICKET-2621:
---------------------------------------

yep, thanks

> 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
>            Assignee: Igor Vaynberg
>             Fix For: 1.4.5, 1.5-M1
>
>         Attachments: wicket-2621-sample-app.zip
>
>
> 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.


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

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791604#action_12791604 ] 

Igor Vaynberg commented on WICKET-2621:
---------------------------------------

attach your quickstart and i will take a look

> 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
>            Assignee: Igor Vaynberg
>
> 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.


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

Posted by "Alex Grant (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791421#action_12791421 ] 

Igor Vaynberg commented on WICKET-2621:
---------------------------------------

got a quickstart?

> 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.


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

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg closed WICKET-2621.
---------------------------------

    Resolution: Won't Fix
      Assignee: Igor Vaynberg

due to a lot of other fixes we have done for ajax-related file uploads you will have to call form.setmultipart(true) yourself. wicket tries its best to detect multipart forms, but its always a good idea to call it explicitly because with ajax there are cases where wicket cannot detect multipart forms early enough.

> 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
>            Assignee: Igor Vaynberg
>
> 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.


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

Posted by "Alex Grant (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Grant updated WICKET-2621:
-------------------------------

    Attachment: wicket-2621-sample-app.zip

> 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
>            Assignee: Igor Vaynberg
>         Attachments: wicket-2621-sample-app.zip
>
>
> 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.


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

Posted by "Alex Grant (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791717#action_12791717 ] 

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

Thank you for the speedy fix.
I looked at the svn commits (out of curiousity), and noticed these

+	private static short MULTIPART_HARD = 0x01;
+	private static short MULTIPART_HINT = 0x02;

Shouldn't they be final?

> 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
>            Assignee: Igor Vaynberg
>             Fix For: 1.4.5, 1.5-M1
>
>         Attachments: wicket-2621-sample-app.zip
>
>
> 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.


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

Posted by "Alex Grant (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791602#action_12791602 ] 

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

I've just finished creating a test case to reproduce this one.
The problem is, it's *not* a multipart form.

I'm using a wizard. On the first step of the wizard, there is a file upload component, (and that works correctly). But on the second step, there is no upload component, but the ajax popup fails, because the java Form object still thinks it *is* multipart.

> 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
>            Assignee: Igor Vaynberg
>
> 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.


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

Posted by "Alex Grant (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791609#action_12791609 ] 

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

Form.setMultipart(true) does not fix the problem - The Java Form is already in multipart mode (as the one Form is shared by the wizard across all steps and the first step had a upload component). The problem is the ajax submit is not multipart (presumably because there are no upload components on the page).

> 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
>            Assignee: Igor Vaynberg
>         Attachments: wicket-2621-sample-app.zip
>
>
> 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.


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

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-2621.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-M1
                   1.4.5

> 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
>            Assignee: Igor Vaynberg
>             Fix For: 1.4.5, 1.5-M1
>
>         Attachments: wicket-2621-sample-app.zip
>
>
> 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.


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

Posted by "Alex Grant (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791613#action_12791613 ] 

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

Thanks for reopening it. Sorry about the delay, I'm in a different time zone so only recently got your request for a testcase, and it took me a while to isolate the problem.

> 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
>            Assignee: Igor Vaynberg
>         Attachments: wicket-2621-sample-app.zip
>
>
> 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.