ICEfaces
  1. ICEfaces
  2. ICE-5749

Sparkle: Require CSS resource loading solution with better alignment with std. YUI resource URLs

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha3
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • 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.

        Activity

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Ken Fyten
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: