You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Johannes Esseling (JIRA)" <ji...@apache.org> on 2016/07/18 14:13:20 UTC

[jira] [Updated] (WICKET-6208) setMultiPart causes Not Found-Error when performing AjaxRefresh on Form

     [ https://issues.apache.org/jira/browse/WICKET-6208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johannes Esseling updated WICKET-6208:
--------------------------------------
    Attachment: quickstart-multipart-form.zip

I attached the quickstart.
I opened the WAR-File in the newest Tomcat.

> setMultiPart causes Not Found-Error when performing AjaxRefresh on Form
> -----------------------------------------------------------------------
>
>                 Key: WICKET-6208
>                 URL: https://issues.apache.org/jira/browse/WICKET-6208
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket, wicket-atmosphere
>    Affects Versions: 7.3.0
>            Reporter: Johannes Esseling
>            Assignee: Emond Papegaaij
>         Attachments: quickstart-multipart-form.zip
>
>
> Hello,
> I am trying to migrate to Wicket 7 and also use Wicket-Atmosphere. 
> Everything seemed to work fine until I encountered a Form where I enabled "setMultiPart". 
> I have a few FormComponents and a few Uploads in that form. The form also contains an AjaxSubmitLink. I do this to refresh all potential FeedBackPanels in that form.
> {code}
>  @Override
>             protected void onError(AjaxRequestTarget target, Form<?> form) {
>                 target.add(form);
>             }
> {code}
> Now to the problem:
> I have mapped the Page containing the form in my quickstart to "/home/staying/disappearing".
> When I submit the form without entering something in a FormComponent in the Form the "onError" gets called and the form refreshed via Ajax. 
> I noticed something strange in the Header-Contribution of the Ajax-Response: 
> {code}
> <header-contribution><![CDATA[<head xmlns:wicket="http://wicket.apache.org"><script type="text/javascript" src="./wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-1.12.3-ver-1468849186000.js"></script>
> ...
> </head>]]></header-contribution>
> {code}
> Shouldn't the path to the resource be "../../wicket/resource/....."? 
> Following the AjaxResponse is the evaluation of the resources:
> {code}
> GET http://localhost:8080/home/staying/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-1.12.3-ver-1468849186000.js 
> {code}
> This causes the Not Found - Error. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)