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

Andre L commented on WICKET-3869:
---------------------------------

The problem is not only related to modal windows. Loading a image resource as 
part of a component added to a AjaxRequestTarget seems to result in this error 
in Internet Explorer. This can easily be reproduced by changing the use of a 
ModalWindow in the example application with a LazyLoadPanel:

        AjaxLazyLoadPanel lazyLoadPanel = new AjaxLazyLoadPanel("modalWindow") {

            @Override
            public Component getLazyLoadComponent(final String id) {
                return new ImageWicketModalPanel(id);
            }
        };
        add(lazyLoadPanel);

IE starts to process the request for the image but then decides to cancel the 
operation (just after sending the request to the server). There are several 
reasons why IE might decide to abort the request, for example if it finds out 
that the resource was allready cached or that a javascript do not wait for the 
server response.

Disabling the Image anticaching seems to prevent the ResponseIOException on the 
server, but IE still tries to load the image resource two times (aborting the 
first operation).

> ResponseIOException when ajax response contains resource reference
> ------------------------------------------------------------------
>
>                 Key: WICKET-3869
>                 URL: https://issues.apache.org/jira/browse/WICKET-3869
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC5.1
>         Environment: Internet Explorer
>            Reporter: Sodasmile
>              Labels: ResponseIOException, explorer, internet
>         Attachments: iwicket-no-image.tgz, iwicket.zip
>
>
> When ajax response (show modal window) contains shared image response, server 
> log reports ResponseIOException.
> See attached example application. Using maven, type mvn package jetty:run. 
> Open http://localhost/8080/iwicket/ in Internet Explorer, click the link, 
> watch server log (may need to open/close modal window a few times, but 
> usually appears on first attempt). 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to