ICEfaces
  1. ICEfaces
  2. ICE-8818

utilize ace component factory to detect missing resources

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      IF 3.x

      Description

      Many common issues on the forums are related to users not being familiar with the resource loading requirements of dynamically included components in ICEfaces 3. If we used a ACE-wide Javascript object to initialize our component instances, we could detect if component resources are loaded, and provide directions to resource loading instructions if they are missing, and for which component, rather than having the browser vaguely complain about undefined objects.

      For example the dataTable initializes its Javascript instance currently like:
      var widgetVar = new ice.ace.DataTable(id, { configObj... });

      and markup would be minimally changed to be like:
      var widgetVar = ice.ace.create('DataTable', id, { configObj... });

      where ice.ace.create would look something like:

      var ice.ace.create = function(compName, id, cfg) {
        var constructor = ice.ace[compName];
        if (constructor) return new constructor(id, cfg);
        else ice.ace.resourceError(compName);
      }

        Activity

          People

          • Assignee:
            Nils Lundquist
            Reporter:
            Nils Lundquist
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: