ICEfaces
  1. ICEfaces
  2. ICE-6047

Automatic loading of external scripts

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta1
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces 2.0, Google maps

      Description

      As described in ICE-5211, it can be difficult to integrate components that require external scripts, such as

      http://maps.google.com/maps/api/js?sensor=false

      Evidence indicates that these external scripts must be loaded on initial page GET, so the best solution is to have the script loading as part of the page template.

      This can be implemented as an externalScript resource component automatically added to the HEAD resources, similar to bridge.js. The externalScript component should automatically detect any other components in the application that require external scripts. This can be done through a context parameter or an <ice:config> parameter. Additionally, it may be desirable to specify a script link to be loaded directly in web.xml (not associated with any particular component.)

      It is possible that <ice:config> will not run at the right time to ensure that the JavaScript is loaded when required.
       

        Issue Links

          Activity

            People

            • Assignee:
              Greg Dick
              Reporter:
              Ted Goddard
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: