Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.3
-
Fix Version/s: EE-3.3.0.GA, 4.0.BETA, 4.0
-
Component/s: ACE-Components, Framework
-
Labels:None
-
Environment:ICEfaces 3.3, "org.icefaces.coalesceResources=true", ace:themeSelect component
-
Assignee Priority:P1
-
Affects:Compatibility/Configuration
-
Workaround Exists:Yes
-
Workaround Description:
Description
There is an incompatibility between using the ace:themeSelect component in conjunction with "org.icefaces.coalesceResources=true".
The issue is caused by the initial theme .css resources being included in the coalesced CSS file. Here is a breakdown of the sequence of events:
1. The coalesced CSS file is generated initially when the page is first loaded via GET, includes the currently selected theme .css at this time (say "Sam").
2. User selects a difference theme (say "Swanky-purse") using the ace:themeSelector component.
3. The "Swanky-purse" theme css is specify at the top of the head section correctly, but since the original "Sam" theme resources are included in the coalesced.css file after that, it overrides most or all of the theme styles back to Sam, so "Swanky-purse" styles are lost.
Possible fix for this issue are to somehow indicate the theme files shouldn't be included in the coalesced.css.
The issue is caused by the initial theme .css resources being included in the coalesced CSS file. Here is a breakdown of the sequence of events:
1. The coalesced CSS file is generated initially when the page is first loaded via GET, includes the currently selected theme .css at this time (say "Sam").
2. User selects a difference theme (say "Swanky-purse") using the ace:themeSelector component.
3. The "Swanky-purse" theme css is specify at the top of the head section correctly, but since the original "Sam" theme resources are included in the coalesced.css file after that, it overrides most or all of the theme styles back to Sam, so "Swanky-purse" styles are lost.
Possible fix for this issue are to somehow indicate the theme files shouldn't be included in the coalesced.css.
Issue Links
- depends on
-
ICE-9163 Resource Ordering not maintained upon page navigation
- Closed
The #34525 commit for
ICE-9163implements the page loading directly into themeselect.js (at Ken's recommandation).