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
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Ken Fyten
created issue -
Ken Fyten
made changes -
Field | Original Value | New Value |
---|---|---|
Workaround Description |
A suitable work-around for this issue is to force the page to be reloaded whenever the user changes the theme via the ace:themeSelect component.
An example of the required technique will be added to the ICEfaces Showcase sample application. |
|
Workaround Exists | Yes [ 10007 ] |
Ken Fyten
made changes -
Workaround Description |
A suitable work-around for this issue is to force the page to be reloaded whenever the user changes the theme via the ace:themeSelect component.
An example of the required technique will be added to the ICEfaces Showcase sample application. |
A suitable work-around for this issue is to force the page to be reloaded whenever the user changes the theme via the ace:themeSelect component. This will send another GET request, which will result in the coalesced.css file being regenerated and including the newly selected theme, which will avoid the issue, although we will still be loading the theme css twice.
An example of the required technique will be added to the ICEfaces Showcase sample application. |
Ken Fyten
made changes -
Fix Version/s | 3.4 [ 10770 ] |
Ken Fyten
made changes -
Assignee | Mircea Toma [ mircea.toma ] | |
Assignee Priority | P3 [ 10012 ] |
yip.ng
made changes -
Attachment | screenshot-01.png [ 15810 ] |
Mircea Toma
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Affects | Compatibility/Configuration [ 10002 ] | |
Assignee Priority | P3 [ 10012 ] | P1 [ 10010 ] |
Mircea Toma
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | EE-3.3.0.GA [ 10572 ] |
Ken Fyten
made changes -
Fix Version/s | 4.0 [ 11382 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |