Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Invalid
-
Affects Version/s: 1.7.1
-
Fix Version/s: 1.7.2
-
Component/s: Bridge, Framework, ICE-Components
-
Labels:None
-
Environment:portal portlet ie7 ie6
-
ICEsoft Forum Reference:
-
Workaround Exists:Yes
-
Workaround Description:HideWhen ice:outputStyle is contained by elements other than HEAD, BODY, or FORM moving the declaration right before closing the tag the background image is rendered properly when navigating back to page1.
Example:
<ice:portlet>
......
......
<ice:outputStyle href="..."/>
<ice:portlet>
ShowWhen ice:outputStyle is contained by elements other than HEAD, BODY, or FORM moving the declaration right before closing the tag the background image is rendered properly when navigating back to page1. Example: <ice:portlet> ...... ...... <ice:outputStyle href="..."/> <ice:portlet>
Description
-
Hide
- ICE-3277-html-demo-updated.zip
- 3 kB
- Mircea Toma
-
- ICE-3277-html-demo/css1.css 0.1 kB
- __MACOSX/ICE-3277-html-demo/._css1.css 0.2 kB
- ICE-3277-html-demo/css2.css 0.1 kB
- __MACOSX/ICE-3277-html-demo/._css2.css 0.2 kB
- ICE-3277-html-demo/ICE-3277.htm 2 kB
- __MACOSX/.../._ICE-3277.htm 0.2 kB
- __MACOSX/._ICE-3277-html-demo 0.2 kB
-
Hide
- ICE-3277-html-demo.zip
- 1 kB
- Adnan Durrani
-
- css2.css 0.1 kB
- ICE-3277.htm 2 kB
- css1.css 0.1 kB
-
Hide
- ICE-3277.war
- 6.05 MB
-
- META-INF/MANIFEST.MF 0.0 kB
- WEB-INF/lib/xercesImpl.jar 1.15 MB
- WEB-INF/lib/icefaces-comps.jar 1.77 MB
- WEB-INF/classes/.../test/TestDateBean.class 0.5 kB
- WEB-INF/lib/commons-collections.jar 558 kB
- WEB-INF/lib/backport-util-concurrent.jar 319 kB
- page2.jspx 0.5 kB
- WEB-INF/lib/commons-beanutils.jar 184 kB
- WEB-INF/lib/commons-logging.jar 52 kB
- WEB-INF/lib/jstl.jar 17 kB
- WEB-INF/classes/.../test/TestDateBean.java 0.2 kB
- page1.jspx 0.5 kB
- WEB-INF/.../krysalis-jCharts-1.0.0-alpha-1.jar 151 kB
- WEB-INF/web.xml 2 kB
- WEB-INF/lib/xml-apis.jar 190 kB
- WEB-INF/lib/icefaces.jar 1008 kB
- WEB-INF/lib/commons-digester.jar 140 kB
- WEB-INF/lib/jsf-api.jar 356 kB
- WEB-INF/lib/jsf-impl.jar 778 kB
- WEB-INF/classes/org/.../test/.DS_Store 6 kB
- WEB-INF/lib/commons-fileupload.jar 87 kB
- WEB-INF/faces-config.xml 0.9 kB
-
Hide
- calendar_icon.zip
- 9 kB
- Deryk Sinotte
-
- calendar_icon/META-INF/MANIFEST.MF 0.1 kB
- calendar_icon/page1.jspx 0.5 kB
- __MACOSX/calendar_icon/._page1.jspx 0.2 kB
- calendar_icon/page2.jspx 0.5 kB
- __MACOSX/calendar_icon/._page2.jspx 0.2 kB
- calendar_icon/src/.DS_Store 6 kB
- calendar_icon/src/org/.../test/.DS_Store 6 kB
- calendar_icon/src/.../test/TestDateBean.java 0.2 kB
- calendar_icon/WEB-INF/.DS_Store 6 kB
- calendar_icon/WEB-INF/.../TestDateBean.class 0.4 kB
- calendar_icon/WEB-INF/faces-config.xml 0.9 kB
- calendar_icon/.../liferay-display.xml 0.3 kB
- calendar_icon/.../liferay-plugin-package.properties 0.2 kB
- calendar_icon/.../liferay-portlet.xml 0.8 kB
- calendar_icon/WEB-INF/portlet.xml 1 kB
- calendar_icon/WEB-INF/web.xml 2 kB
-
- ie7 calendar 3.png
- 42 kB
-
- ie7 calendar 2.png
- 41 kB
-
- ie7 calendar 1.png
- 42 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Links referencing CSS rules are supposed to be inserted into the HEAD element of the document. Although most of the browsers are forgiving where the links are inserted, I don't think we should rely on this kind of behavior.
I believe a good way to fix the issue of CSS linking is to refactor ice:outputStyle component to use the ResourceRegistry API to insert the links directly into the HEAD.
I prototyped a version of ice:outputStyle component that uses the ResourceRegistry API but the results were not the greatest. The ResourceRegistry API is meant for serving up a resource while ice:outputStyle component just needs to reference one, regardless of how it will get materialized (sent over the wire). Also, as Deryk mentioned, we don't want to force a full page load on too often, especially in a portlet environment.
I attached a version of the plain HTML test case that mirrors better what the bridge does when an element is updated. The test case runs fine in IE, event with a CSS reference nested within the updated 'DIV'.
I also deployed the war file to try reproducing the described issue but I could still see the background-image of the button after the redirect.
I'm marking this INVALID for now. I really need a well defined test case that can prove clearly that there really is an issue.
Simplified test case (minus the lib directory) that can be run as a web app or portlet
1) Build and deploy as a web app or portlet.
2) Point browser at host:port/calendar_icon/page1.iface
3) Click the button to navigate to page 2
4) Click the button to navigate back to page 1
In IE, when you get back to page 1, the calendar icon is missing and the style of the heading text is no longer correct (back to the default).