Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: EE-3.3.0.GA_P01
-
Fix Version/s: 4.0.BETA, EE-3.3.0.GA_P02, 4.0
-
Component/s: Framework
-
Labels:None
-
Environment:All
-
Assignee Priority:P1
-
Salesforce Case Reference:
Description
When defining application specific CSS and JavaScript files in the h:head tag, these resources are rendered first and then the ICEfaces CSS/Script is loaded after. In the EE 3.2.0 release these resources were loaded last, therefore allowing style/script to override the default ICEfaces resources if required.
-
Hide
- Case12483Example.war
- 3.49 MB
- Arran Mccullough
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/context.xml 0.1 kB
- WEB-INF/lib/commons-beanutils.jar 226 kB
- WEB-INF/lib/commons-collections.jar 558 kB
- WEB-INF/lib/commons-digester.jar 140 kB
- WEB-INF/lib/commons-logging.jar 52 kB
- WEB-INF/lib/javax.faces-2.1.26.jar 2.53 MB
- WEB-INF/web.xml 2 kB
- index.xhtml 0.5 kB
- resources/css/style.css 0.1 kB
- resources/js/script.js 0.1 kB
- welcomeICEfaces.xhtml 1 kB
-
Hide
- Case12483Example.zip
- 20 kB
- Arran Mccullough
-
- Case12483Example/build.xml 3 kB
- Case12483Example/.../ant-deploy.xml 3 kB
- Case12483Example/.../build-impl.xml 77 kB
- Case12483Example/.../genfiles.properties 0.5 kB
- Case12483Example/.../private.properties 0.6 kB
- Case12483Example/.../project.properties 3 kB
- Case12483Example/nbproject/project.xml 0.9 kB
- Case12483Example/src/conf/MANIFEST.MF 0.0 kB
- Case12483Example/web/index.xhtml 0.5 kB
- Case12483Example/web/.../context.xml 0.1 kB
- Case12483Example/web/.../css/style.css 0.1 kB
- Case12483Example/web/.../js/script.js 0.1 kB
- Case12483Example/web/WEB-INF/web.xml 2 kB
- Case12483Example/.../welcomeICEfaces.xhtml 1 kB
-
- Test-EE-3.2.0.jpg
- 268 kB
-
- Test-EE-3.3.0-P01.jpg
- 251 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
The problem does not reside in ICEfaces but in application code. The welcome page needs to h:outputScript and h:outputStylesheet component to define the extra resources that the application needs. This way it is ensured that resources are taken into account by JSF and later on by our resource ordering feature.
The fix applied to welcomeICEfaces.xhtml should look like this:
..... <h:head> <title>ICEfaces 3</title> <h:outputStylesheet name="style.css" library="css" target="head"/> <h:outputScript name="script.js" library="js" target="head"/> </h:head> .....
Show
Mircea Toma
added a comment - The problem does not reside in ICEfaces but in application code. The welcome page needs to h:outputScript and h:outputStylesheet component to define the extra resources that the application needs. This way it is ensured that resources are taken into account by JSF and later on by our resource ordering feature.
The fix applied to welcomeICEfaces.xhtml should look like this:
.....
<h:head>
<title>ICEfaces 3</title>
<h:outputStylesheet name= "style.css" library= "css" target= "head" />
<h:outputScript name= "script.js" library= "js" target= "head" />
</h:head>
.....
Attached test case war and source code that reproduced this issue. Note: the icefaces.jar, icefaces-ace.jar, and icefaces-compat.jar need to be added back into the war for it to run.
Also attached two screen shots showing the differences between EE 3.2.0 and EE 3.3.0 P01.