ICEmobile
  1. ICEmobile
  2. MOBI-1084

Custom CSS style sheets are being overriden by default style sheets

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE 1.3.1.GA
    • Fix Version/s: EE 1.3.0.GA_P01
    • Component/s: Core
    • Labels:
      None
    • Environment:
      All

      Description

      When defining a custom style sheet via the h:outputStylesheet tag, with the EE 1.3.1 release, this is getting overriden by the default CSS. In the 1.3.0 release the custom style sheet would be added further down the head tag. Now the default style sheet (android_light) is being added last.

        Issue Links

          Activity

          Hide
          Arran Mccullough added a comment -

          Attached test case that shows the issue. Note: the war file needs to icefaces-ee-mobi.jar to be added back in.

          To see the issue, run welcomeICEmobile.jsf and view the rendered code through some browser tools. The style.css should be the last one in the head tag but with 1.3.1 it is further up the head section.

          Show
          Arran Mccullough added a comment - Attached test case that shows the issue. Note: the war file needs to icefaces-ee-mobi.jar to be added back in. To see the issue, run welcomeICEmobile.jsf and view the rendered code through some browser tools. The style.css should be the last one in the head tag but with 1.3.1 it is further up the head section.
          Hide
          Philip Breau added a comment -

          Revision: 42077
          Author: philip.breau
          Date: August-06-14 2:52:57 PM
          Message:
          MOBI-700
          Leverage ICEfaces Resource Coalescing
          change DeviceResourceRenderer to create an OutputStyleSheet component for the theme, which can then participate in proper ICEfaces resource handling and be specified in the resource-dependency.xml file
          added sample resource-dependency.xml to showcase
          Modified : /icemobile/trunk/icemobile/jsf/components/component/resources/icefaces.ace/META-INCLUDE/faces-config.xml
          Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/deviceresource/DeviceResourceRenderer.java
          Added : /icemobile/trunk/icemobile/samples/jsf/mobileshowcase/src/main/resources/META-INF
          Added : /icemobile/trunk/icemobile/samples/jsf/mobileshowcase/src/main/resources/META-INF/resource-dependency.xml

          Example resource-dependency.xml:
          **********************************************
          <dependencies>
          <resource name="showcase.css" library="css">
          <requires>
          <resource name="android_light.css" library="org.icefaces.component.skins"/>
          <resource name="android_dark.css" library="org.icefaces.component.skins"/>
          <resource name="archaic.css" library="org.icefaces.component.skins"/>
          <resource name="bb10.css" library="org.icefaces.component.skins"/>
          <resource name="bberry.css" library="org.icefaces.component.skins"/>
          <resource name="ios7.css" library="org.icefaces.component.skins"/>
          <resource name="ipad.css" library="org.icefaces.component.skins"/>
          <resource name="iphone.css" library="org.icefaces.component.skins"/>
          <resource name="jqm.css" library="org.icefaces.component.skins"/>
          <resource name="simulator.css" library="org.icefaces.component.skins"/>
          </requires>
          </resource>
          </dependencies>

          Show
          Philip Breau added a comment - Revision: 42077 Author: philip.breau Date: August-06-14 2:52:57 PM Message: MOBI-700 Leverage ICEfaces Resource Coalescing change DeviceResourceRenderer to create an OutputStyleSheet component for the theme, which can then participate in proper ICEfaces resource handling and be specified in the resource-dependency.xml file added sample resource-dependency.xml to showcase Modified : /icemobile/trunk/icemobile/jsf/components/component/resources/icefaces.ace/META-INCLUDE/faces-config.xml Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/deviceresource/DeviceResourceRenderer.java Added : /icemobile/trunk/icemobile/samples/jsf/mobileshowcase/src/main/resources/META-INF Added : /icemobile/trunk/icemobile/samples/jsf/mobileshowcase/src/main/resources/META-INF/resource-dependency.xml Example resource-dependency.xml: ********************************************** <dependencies> <resource name="showcase.css" library="css"> <requires> <resource name="android_light.css" library="org.icefaces.component.skins"/> <resource name="android_dark.css" library="org.icefaces.component.skins"/> <resource name="archaic.css" library="org.icefaces.component.skins"/> <resource name="bb10.css" library="org.icefaces.component.skins"/> <resource name="bberry.css" library="org.icefaces.component.skins"/> <resource name="ios7.css" library="org.icefaces.component.skins"/> <resource name="ipad.css" library="org.icefaces.component.skins"/> <resource name="iphone.css" library="org.icefaces.component.skins"/> <resource name="jqm.css" library="org.icefaces.component.skins"/> <resource name="simulator.css" library="org.icefaces.component.skins"/> </requires> </resource> </dependencies>

            People

            • Assignee:
              Philip Breau
              Reporter:
              Arran Mccullough
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: