ICEfaces
  1. ICEfaces
  2. ICE-5698

Sparkle: Establish local copies of required YUI libraries

    Details

    • Type: Task Task
    • 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:
      IF Sparkle components

      Description

      Currently, the initial batch of Sparkle components are loading their respective YUI JS libraries dynamically from the Yahoo servers. We need to consolidate the require YUI libs (2.x and 3.x) used by the components in to a local copy that they refer to instead.

      This should consist of:

      1. The latest YUI 2.x release.
      2. The latest YUI 3.x release.

        Issue Links

          Activity

          Hide
          yip.ng added a comment - - edited

          YUI libraries 2.8.1 and 3.1.1 checked in. To use, in component class (e.g. SelectInputDate.java) add:

          @ResourceDependencies(

          { ...... @ResourceDependency(library = "yui/2_8_1", name = "calendar/calendar-min.js"), ...... }

          )

          calendar-min.js is minified version. To trace code in debugger, use calendar.js or calendar-debug.js. calendar-debug.js may make use of logger control, so you may also need logger.css and logger-debug.js:

          @ResourceDependencies(

          { ...... @ResourceDependency(library = "yui/2_8_1", name = "logger/assets/skins/sam/logger.css"), @ResourceDependency(library = "yui/2_8_1", name = "calendar/calendar-debug.js"), @ResourceDependency(library = "yui/2_8_1", name = "logger/logger-debug.js"), ...... }

          )

          Dynamic CSS and JS loading from the client side (YUILoader.insert() in YUI2 and YUI().use() in YUI3) probably won't work for local copies of libraries?

          Show
          yip.ng added a comment - - edited YUI libraries 2.8.1 and 3.1.1 checked in. To use, in component class (e.g. SelectInputDate.java) add: @ResourceDependencies( { ...... @ResourceDependency(library = "yui/2_8_1", name = "calendar/calendar-min.js"), ...... } ) calendar-min.js is minified version. To trace code in debugger, use calendar.js or calendar-debug.js. calendar-debug.js may make use of logger control, so you may also need logger.css and logger-debug.js: @ResourceDependencies( { ...... @ResourceDependency(library = "yui/2_8_1", name = "logger/assets/skins/sam/logger.css"), @ResourceDependency(library = "yui/2_8_1", name = "calendar/calendar-debug.js"), @ResourceDependency(library = "yui/2_8_1", name = "logger/logger-debug.js"), ...... } ) Dynamic CSS and JS loading from the client side (YUILoader.insert() in YUI2 and YUI().use() in YUI3) probably won't work for local copies of libraries?

            People

            • Assignee:
              Adnan Durrani
              Reporter:
              Ken Fyten
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: