Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.0.1
-
Fix Version/s: 3.2
-
Component/s: None
-
Labels:None
-
Environment:Glassfish 3.1, Tomcat 7, Chrome, Firefox, Internet Explorer 9
-
Workaround Exists:Yes
-
Workaround Description:HideA formal fix for this issue depends on a new resource ordering capability in either JSF itself, or possibly ICEfaces. In the meantime, there are two possible workarounds for this issue:
1. Move the application-level CSS stylesheets into the top of the body region of the page, and out of the head. This will ensure that they are always loaded after the core icefaces stylesheets.
2. Possibly you could create a custom ThemeRoller theme with essentially empty style sheets and specify that using the org.icefaces.ace.theme config. param.
ShowA formal fix for this issue depends on a new resource ordering capability in either JSF itself, or possibly ICEfaces. In the meantime, there are two possible workarounds for this issue: 1. Move the application-level CSS stylesheets into the top of the body region of the page, and out of the head. This will ensure that they are always loaded after the core icefaces stylesheets. 2. Possibly you could create a custom ThemeRoller theme with essentially empty style sheets and specify that using the org.icefaces.ace.theme config. param.
Description
<context-param>
<param-name>org.icefaces.ace.theme</param-name>
<param-value>none</param-value>
</context-param>
When you do this, custom application style sheets are loaded first.
If you remove this parameter custom CSS will appear at the end of the header as specified in release notes:
http://wiki.icesoft.org/display/ICE/ICEfaces+3.0.1+Release+Notes
See screen shots for details.
To reproduce use attached source code.
-
Hide
- Case11246Example.fixed.zip
- 25 kB
- Mircea Toma
-
- build.xml 3 kB
- __MACOSX/._build.xml 0.2 kB
- nbproject/ant-deploy.xml 4 kB
- __MACOSX/nbproject/._ant-deploy.xml 0.2 kB
- nbproject/build-impl.xml 46 kB
- __MACOSX/nbproject/._build-impl.xml 0.2 kB
- nbproject/genfiles.properties 0.5 kB
- __MACOSX/nbproject/._genfiles.properties 0.2 kB
- nbproject/private/private.properties 0.3 kB
- __MACOSX/nbproject/.../._private.properties 0.2 kB
- __MACOSX/nbproject/._private 0.2 kB
- nbproject/project.properties 3 kB
- __MACOSX/nbproject/._project.properties 0.2 kB
- nbproject/project.xml 0.9 kB
- __MACOSX/nbproject/._project.xml 0.2 kB
- __MACOSX/._nbproject 0.2 kB
- web/.DS_Store 6 kB
- __MACOSX/web/._.DS_Store 0.1 kB
- web/META-INF/context.xml 0.1 kB
- __MACOSX/web/META-INF/._context.xml 0.2 kB
- __MACOSX/web/._META-INF 0.2 kB
- web/WEB-INF/.DS_Store 6 kB
- __MACOSX/web/WEB-INF/._.DS_Store 0.1 kB
- web/WEB-INF/classes/.DS_Store 6 kB
- __MACOSX/web/WEB-INF/classes/._.DS_Store 0.1 kB
- web/WEB-INF/.../resource-dependency.xml 0.4 kB
- web/WEB-INF/sun-web.xml 0.5 kB
- __MACOSX/web/WEB-INF/._sun-web.xml 0.2 kB
- web/WEB-INF/web.xml 2 kB
- __MACOSX/web/WEB-INF/._web.xml 0.2 kB
-
Hide
- Case11246Example.zip
- 16 kB
- Evgheni Sadovoi
-
- Case11246Example/build.xml 3 kB
- Case11246Example/.../ant-deploy.xml 4 kB
- Case11246Example/.../build-impl.xml 46 kB
- Case11246Example/.../genfiles.properties 0.5 kB
- Case11246Example/.../private.properties 0.3 kB
- Case11246Example/.../project.properties 3 kB
- Case11246Example/nbproject/project.xml 0.9 kB
- Case11246Example/web/.../context.xml 0.1 kB
- Case11246Example/web/.../css/style.css 0.1 kB
- Case11246Example/web/WEB-INF/sun-web.xml 0.5 kB
- Case11246Example/web/WEB-INF/web.xml 2 kB
- Case11246Example/.../welcomeICEfaces.xhtml 2 kB
-
- theme-none-absent.jpg
- 147 kB
-
- theme-none-present.jpg
- 131 kB
Issue Links
- depends on
-
ICE-8171 Implement resource ordering based on declared resource interdependencies
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Chances are that ICE-8171 resolution will fix this issue as well.
Modified HeadRenderer to add theme related CSS resources to the component tree before render phase (modeled after h:outputStylesheet renderer). This way the resource ordering can be properly applied to all the resources that need to be rendered in the page. Added resource dependency metadata for the themes to make sure they get loaded after the component related CSS styles.
Modified attached test case to use h:outputStylesheet tag instead of the HTML 'link' tag, this way the resource is added to the head. Later on the resource is ordered based on the resource dependency metadata saved in WEB-INF/classes/META-INF/resource-dependency.xml file.
This JIRA is related to the changes we introduced in
ICE-7761