ICEmobile
  1. ICEmobile
  2. MOBI-307

JSP Resource Loading and Consolidation Strategy

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1 Final
    • Fix Version/s: 1.2 Beta
    • Component/s: Spring
    • Labels:
      None
    • Environment:
      jsp

      Description

      The resource loading strategy for JSP tags could be improved. Currently, if not using Spring MVC resource mapping the developer must manually include the needed CSS, JavaScript and image resources in the application project structure.

      The location of the various tag resources also currently lacks a standard structure. For instance, the iscroll.js resource is located under the JSF component resources, and in the ICEmobile Spring MVC demo. It would be better if there were only one location for this resource.

      We may also consider a resource loading utility servlet that could be used in straight JSP (non-Spring MVC) environments, so that users are not forced to manually include the resources in their project structure.

      It's also a bit odd that the folder name for the skins is 'org.icefaces.component.skins'. We may want to remove the ICEfaces reference here. I think 'skins' would suffice.

        Issue Links

          Activity

          Philip Breau created issue -
          Philip Breau made changes -
          Field Original Value New Value
          Assignee Steve Maryka [ steve.maryka ] Philip.breau [ philip.breau ]
          Philip Breau made changes -
          Fix Version/s 1.2 Beta [ 10344 ]
          Philip Breau made changes -
          Summary JSP Resource Loading Strategy JSP Resource Loading and Consolidation Strategy
          Philip Breau made changes -
          Link This issue blocks MOBI-260 [ MOBI-260 ]
          Philip Breau made changes -
          Comment [ In relation to MOBI-260, we should find a way to consolidate all shared resources between JSF and JSP.

          Currently, we have some duplication and overlap with the CSS resources.

          Source location
          *****************
          jsp\src\main\resources\META-INF\web-resources\org.icefaces.component.skins
          jsp\src\main\resources\META-INF\web-resources\icemobile.js
          resources\themes
          jsf\components\component\resources\org.icefaces.component.util

          Built
          *****
          CSS resources:
          icemobile-jsp.jar\META-INF\web-resources\org.icefaces.component.skins\

          icefaces-mobi.jar\META-INF\resources\org.icefaces.component.skins\

          JS resources:
          icefaces-mobi.jar\META-INF\resources\org.icefaces.component.util\
              combined.js
              component.js
              iscroll.js

          [context root]\resources\org.icefaces.component.util\
              iscroll.js

          ]
          Philip Breau made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: