Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Invalid
-
Affects Version/s: EE-2.0.0.GA
-
Fix Version/s: 3.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Internet Explorer 9, ICEfaces 2.0.0GA, Tomcat 7
-
Assignee Priority:P1
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
-
Workaround Description:HideEasiest workaround would be to pre-load (but not display) the image(s) or other resources you need on the original request so that they are available in IE's cache when you need them.
Another workaround would be to create a servlet filter for the served images, filter that would return a different combination of caching headers to hopefully make IE9 retrieve the referenced images.ShowEasiest workaround would be to pre-load (but not display) the image(s) or other resources you need on the original request so that they are available in IE's cache when you need them. Another workaround would be to create a servlet filter for the served images, filter that would return a different combination of caching headers to hopefully make IE9 retrieve the referenced images.
Description
When I'm on a page, then navigating to another page (a forward, not a redirect), the images on the second page aren't displayed. Note : Changing the forward for a redirect makes it work.
I have tested this with Firefox 7, Chrome 14 and Internet Explorer 9, the problem only occurs with IE9.
Also, I have done this test with JBoss 6.1 and Tomcat 7, I get the same problem with both.
-
Hide
- Case10647Example.war
- 6.58 MB
- Arran Mccullough
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/context.xml 0.1 kB
- WEB-INF/classes/.../example/TestBean.class 0.9 kB
- WEB-INF/lib/commons-logging.jar 51 kB
- WEB-INF/lib/icefaces-ee-compat.jar 2.65 MB
- WEB-INF/lib/icefaces-ee-ext.jar 55 kB
- WEB-INF/lib/icefaces-ee.jar 203 kB
- WEB-INF/lib/jsf-api.jar 602 kB
- WEB-INF/lib/jsf-impl.jar 1.81 MB
- WEB-INF/lib/jstl-1.2.jar 405 kB
- WEB-INF/lib/jxl.jar 689 kB
- WEB-INF/.../krysalis-jCharts-1.0.0-alpha-1.jar 148 kB
- WEB-INF/web.xml 2 kB
- image.xhtml 0.5 kB
- index.xhtml 1 kB
- resources/.../hat_red_48x48_shadow.png 4 kB
-
Hide
- Case10647Example.zip
- 22 kB
- Arran Mccullough
-
- Case10647Example/build.xml 3 kB
- Case10647Example/.../ant-deploy.xml 2 kB
- Case10647Example/.../build-impl.xml 58 kB
- Case10647Example/.../genfiles.properties 0.5 kB
- Case10647Example/.../private.properties 0.5 kB
- Case10647Example/nbproject/.../private.xml 0.2 kB
- Case10647Example/.../project.properties 3 kB
- Case10647Example/nbproject/project.xml 1 kB
- Case10647Example/src/conf/MANIFEST.MF 0.0 kB
- Case10647Example/src/.../TestBean.java 0.5 kB
- Case10647Example/web/image.xhtml 0.5 kB
- Case10647Example/web/index.xhtml 1 kB
- Case10647Example/web/.../context.xml 0.1 kB
- Case10647Example/.../hat_red_48x48_shadow.png 4 kB
- Case10647Example/web/WEB-INF/web.xml 2 kB
-
Hide
- Case10647ExampleJSF.war
- 2.41 MB
- Arran Mccullough
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/context.xml 0.1 kB
- WEB-INF/lib/jsf-api.jar 602 kB
- WEB-INF/lib/jsf-impl.jar 1.81 MB
- WEB-INF/web.xml 1.0 kB
- image.xhtml 0.5 kB
- index.xhtml 0.5 kB
- resources/.../hat_red_48x48_shadow.png 4 kB
-
Hide
- Case10647ExampleJSF.zip
- 21 kB
- Arran Mccullough
-
- Case10647ExampleJSF/build.xml 3 kB
- Case10647ExampleJSF/.../ant-deploy.xml 2 kB
- Case10647ExampleJSF/.../build-impl.xml 58 kB
- Case10647ExampleJSF/.../genfiles.properties 0.5 kB
- Case10647ExampleJSF/.../private.properties 0.5 kB
- Case10647ExampleJSF/.../private.xml 0.2 kB
- Case10647ExampleJSF/.../project.properties 3 kB
- Case10647ExampleJSF/.../project.xml 0.9 kB
- Case10647ExampleJSF/src/conf/MANIFEST.MF 0.0 kB
- Case10647ExampleJSF/web/image.xhtml 0.5 kB
- Case10647ExampleJSF/web/index.xhtml 0.5 kB
- Case10647ExampleJSF/web/.../context.xml 0.1 kB
- Case10647ExampleJSF/.../hat_red_48x48_shadow.png 4 kB
- Case10647ExampleJSF/web/WEB-INF/web.xml 1.0 kB
-
Hide
- testIcefaces2.war
- 8.83 MB
- Evgheni Sadovoi
-
- META-INF/MANIFEST.MF 0.1 kB
- ICEfacesPage1.xhtml 0.9 kB
- ICEfacesPage2.xhtml 0.9 kB
- WEB-INF/classes/rebel.xml 0.5 kB
- WEB-INF/faces-config.xml 0.3 kB
- WEB-INF/lib/jsf-api.jar 611 kB
- WEB-INF/lib/jsf-impl.jar 1.85 MB
- WEB-INF/web.xml 2 kB
- btn_ok_en.jpg 2 kB
- index.jsp 0.1 kB
- WEB-INF/lib/commons-beanutils.jar 226 kB
- WEB-INF/lib/commons-collections.jar 558 kB
- WEB-INF/lib/commons-logging.jar 52 kB
- WEB-INF/lib/icefaces-ace.jar 2.38 MB
- WEB-INF/lib/icefaces-compat.jar 2.67 MB
- WEB-INF/lib/icefaces.jar 206 kB
- WEB-INF/lib/icepush.jar 242 kB
- WEB-INF/.../krysalis-jCharts-1.0.0-alpha-1.jar 151 kB
- WEB-INF/lib/jxl.jar 708 kB
-
- ScreenShot.jpg
- 238 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Quickly confirmed with Mircea that there wasn't something going on. The best advice would be to pre-load (but not display) the image(s) or other resources you need on the original request so that they are available in IE's cache when you need them. Or perhaps one of the strategies mentioned in the link I provided above will suffice.
Re-opening this JIRA. A different customer has been able to show that this is not an issue with a basic JSF test case. Using the exact same code using ICEfaces cases the issue.
As per the conversation in the support meeting, I tested with using a commandButton with a f:ajax tag to display the image. Testing in IE9, the image is displayed upon clicking of the button. It is not displayed if navigation occurs.
Attached test cases for a non-ICEfaces JSF app and an ICEfaces app. The ICEfaces app includes the commandButton/f:ajax test.
I don't think the recent test cases are equivalent. The non-ICEfaces test doesn't use Ajax so:
- a ViewRoot style update is not done
- the URL in the browser changes (which bypasses the issue)
The problem is related to ViewRoot updates via Ajax where the URL doesn't change. In those cases, IE simply tries to use the cache and will not send a request to retrieve the resource. I suspect that if you change the JSF only test to use f:ajax (or remove ICEfaces libs from the ICEfaces test), it will behave the same way as the ICEfaces test.
This issue is definitely not caused by ICEfaces. After running a modified test case that was not using ICEfaces at all and the navigation was triggered by Ajax enabled h:commandLink the issue could still be reproduced. It seems that IE9 will not make a request for the image referenced by the 'input' element that is inserted dynamically into the document.
Beside the workaround offered by Deryk on could create a servlet filter for the served images, filter that would return a different combination of caching headers to hopefully make IE9 retrieve the referenced images.
Zipped war file to reproduce the problem