ICEmobile
  1. ICEmobile
  2. MOBI-700

Leverage ICEfaces Resource Coalescing

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4 Beta
    • Fix Version/s: EE 1.3.1.GA_P01
    • Component/s: Faces
    • Labels:
      None
    • Environment:
      n/a
    • Support Case References:
      00012961

      Description

      We need to leverage the new Resource Coalescing available in ICEfaces 3.3 to reduce our JavaScript and CSS requests.

        Issue Links

          Activity

          Hide
          Philip Breau added a comment -

          <mobi:deviceResource> will need to be updated to create resource components rather than rendering links directly. One issue appears to be that the deviceResource is a single component that only creates links and script tags during the render phase, whereas the Resource Coalescing appears to take affect in the preRender event of the UIViewRoot, which happens before this.

          Show
          Philip Breau added a comment - <mobi:deviceResource> will need to be updated to create resource components rather than rendering links directly. One issue appears to be that the deviceResource is a single component that only creates links and script tags during the render phase, whereas the Resource Coalescing appears to take affect in the preRender event of the UIViewRoot, which happens before this.
          Hide
          Philip Breau added a comment -

          Resource coalescing still was not working due to missing an OutputStylesheet component.

          Show
          Philip Breau added a comment - Resource coalescing still was not working due to missing an OutputStylesheet component.
          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

          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

            People

            • Assignee:
              Philip Breau
              Reporter:
              Philip Breau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: