Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Alpha3
-
Component/s: ICE-Components
-
Labels:None
-
Environment:ICEfaces 2.0 Glimmer with Sparkle YUI components.
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial
Description
The Sparkle components will identify (and load) their resources via the @ResourceDependency annotation.
This is working as expected for .js files, and they are downloaded from the local library.
However, there's an issue with the CSS files: the problem is that all local CSS files from the YUI library don't have it's image URLs in the JSF format. For example, slider.css has something like this:
background-image:url(rail-x.png);
Instead of something like this:
background-image:url(rail-x.png.jsf?ln=yui/3_1_1);
So the actual image file cannot be reached. I think we will have to parse all CSS files to add this suffix, so that all URLs are in JSF format, but doing so will add a cumbersome step to our ongoing maintenance of the YUI-based code in Sparkle.
We should identify a better solution that does not require modifying all the std. YUI CSS files, if possible.
This is working as expected for .js files, and they are downloaded from the local library.
However, there's an issue with the CSS files: the problem is that all local CSS files from the YUI library don't have it's image URLs in the JSF format. For example, slider.css has something like this:
background-image:url(rail-x.png);
Instead of something like this:
background-image:url(rail-x.png.jsf?ln=yui/3_1_1);
So the actual image file cannot be reached. I think we will have to parse all CSS files to add this suffix, so that all URLs are in JSF format, but doing so will add a cumbersome step to our ongoing maintenance of the YUI-based code in Sparkle.
We should identify a better solution that does not require modifying all the std. YUI CSS files, if possible.
Activity
Ken Fyten
created issue -
Ken Fyten
made changes -
Field | Original Value | New Value |
---|---|---|
Summary | Require Resource loading solution with better alignment with std. YUI resource URLs | Require CSS resource loading solution with better alignment with std. YUI resource URLs |
Salesforce Case | [] | |
Fix Version/s | 2.0-Alpha3 [ 10032 ] | |
Affects | [Compatibility/Configuration] | |
Assignee | Ted Goddard [ ted.goddard ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Fix Version/s | 2.0-Beta [ 10231 ] | |
Fix Version/s | 2.0-Alpha3 [ 10032 ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Assignee | Ted Goddard [ ted.goddard ] | Deryk Sinotte [ deryk.sinotte ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Assignee Priority | P1 | |
Assignee | Deryk Sinotte [ deryk.sinotte ] | Arturo Zambrano [ artzambrano ] |
Ken Fyten
made changes -
Summary | Require CSS resource loading solution with better alignment with std. YUI resource URLs | Sparkle: Require CSS resource loading solution with better alignment with std. YUI resource URLs |
Salesforce Case | [] | |
Component/s | Components [ 10012 ] | |
Component/s | Framework [ 10013 ] | |
Affects | [Compatibility/Configuration] | [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #21838 | Sun Jul 04 19:22:44 MDT 2010 | art.zambrano | |
Files Changed | ||||
ADD
/icefaces/scratchpads/sparkle/component/util/cssurlmapper/cssurlmapper.bat
MODIFY /icefaces/scratchpads/sparkle/component/util/cssurlmapper/src/org/icefaces/util/cssurlmapper/Main.java MODIFY /icefaces/scratchpads/sparkle/component/util/cssurlmapper/build.xml MODIFY /icefaces/scratchpads/sparkle/component/util/cssurlmapper/src/org/icefaces/util/cssurlmapper/UrlOccurrence.java ADD /icefaces/scratchpads/sparkle/component/util/cssurlmapper/cssurlmapper.sh MODIFY /icefaces/scratchpads/sparkle/component/util/cssurlmapper/src/org/icefaces/util/cssurlmapper/CssUrlMapper.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #21853 | Tue Jul 06 21:28:41 MDT 2010 | art.zambrano | |
Files Changed | ||||
MODIFY
/icefaces/scratchpads/sparkle/component/smartsprites/smartsprites-0.3.0-dev.jar
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #21854 | Tue Jul 06 22:20:13 MDT 2010 | art.zambrano | |
Files Changed | ||||
MODIFY
/icefaces/scratchpads/sparkle/component/util/cssurlmapper/src/org/icefaces/util/cssurlmapper/Main.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #21918 | Thu Jul 15 22:27:30 MDT 2010 | art.zambrano | |
Files Changed | ||||
MODIFY
/icefaces/scratchpads/sparkle/component/util/cssurlmapper/src/org/icefaces/util/cssurlmapper/Main.java
ADD /icefaces/scratchpads/sparkle/component/util/cssurlmapper/src/org/icefaces/util/cssurlmapper/ant/CssUrlMapperTask.java ADD /icefaces/scratchpads/sparkle/component/util/cssurlmapper/src/org/icefaces/util/cssurlmapper/ant |
Ken Fyten
made changes -
Fix Version/s | 2.0-Beta2 [ 10242 ] | |
Fix Version/s | 2.0-Beta1 [ 10231 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #21937 | Sun Jul 18 18:43:23 MDT 2010 | art.zambrano | |
Files Changed | ||||
DEL
/icefaces/scratchpads/sparkle/component/resources/org.icefaces.component.slider/sam
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #21938 | Mon Jul 19 00:46:41 MDT 2010 | art.zambrano | |
Files Changed | ||||
MODIFY
/icefaces/scratchpads/sparkle/component/build.xml
MODIFY /icefaces/scratchpads/sparkle/component/build.properties |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #21966 | Mon Jul 19 21:48:54 MDT 2010 | art.zambrano | |
Files Changed | ||||
MODIFY
/icefaces/scratchpads/sparkle/component/build.xml
MODIFY /icefaces/scratchpads/sparkle/component/util/cssurlmapper/src/org/icefaces/util/cssurlmapper/ant/CssUrlMapperTask.java MODIFY /icefaces/scratchpads/sparkle/component/util/cssurlmapper/cssurlmapper.sh MODIFY /icefaces/scratchpads/sparkle/component/build.properties MODIFY /icefaces/scratchpads/sparkle/component/util/cssurlmapper/src/org/icefaces/util/cssurlmapper/CssUrlMapper.java |
Ken Fyten
made changes -
Security | Private [ 10001 ] |
Arturo Zambrano
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 2.0.0 [ 10230 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee Priority | P1 |
CSS can be preprocessed at the component generation stage. Note that it is also useful to concatenate and minify CSS at this stage as well.