ICEfaces
  1. ICEfaces
  2. ICE-5833

Sparkle: Component.js improvements for increased flexibilty

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 2.0-Alpha2
    • Fix Version/s: 3.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 2.0, Sparkle component platform
    • Affects:
      Compatibility/Configuration

      Description

      1. The Sparkle Component.js utility file requires a general review to ensure that is using latest APIs, techniques.

      2. Component.js baseline attribute sync function in updateProperties only works if YUI comp has 'get' and 'set' functions, also only works with basic data types, not objects (Date, etc.). Impl. custom updateProperties function (as in Calendar) is quite involved and "fragile", requiring a complex series of steps that are not all comprehended at this time, but found to be necessary via trial-and-error. We should consider enhancing the update-attributes function to handle more complex attribute types, and be more tolerant of components that lack the get/set methods, etc.

        Activity

        Hide
        Mark Collette added a comment -

        3. The common updateProperties() function calls initialize() when no attached JSContext, otherwise it sets jsProps entries into the javascript object. We should add support, in the non-initialize() case, for invoking a callback function, given by components' updateProperties, which can do arbitrary update, including setting the value from the hidden input field.

        Show
        Mark Collette added a comment - 3. The common updateProperties() function calls initialize() when no attached JSContext, otherwise it sets jsProps entries into the javascript object. We should add support, in the non-initialize() case, for invoking a callback function, given by components' updateProperties, which can do arbitrary update, including setting the value from the hidden input field.
        Hide
        Ken Fyten added a comment -

        This JIRA is out of date with recent developments in 3.0.

        Show
        Ken Fyten added a comment - This JIRA is out of date with recent developments in 3.0.

          People

          • Assignee:
            Mark Collette
            Reporter:
            Ken Fyten
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: