Opened 13 years ago

Closed 13 years ago

#2584 closed defect (invalid)

TreeLoadingController ignores node widget namespace

Reported by: philip.mccarthy@… Owned by: bill
Priority: high Milestone:
Component: Widgets Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:

Description

In TreeLoadingController.js, the loadProcessResponse function only uses the child node's unqualified widgetType when calling dojo.widget.createWidget. This breaks for tree node widgets that aren't in the default namespace.

Culprit is this line (line 74 in dojo rev 6824):

newChildren[i] = dojo.widget.createWidget(node.widgetType, newChildren[i]);

Could be fixed like this:

var namespacedWidgetType = (node.ns ? node.ns+":" : "") + node.widgetType; newChildren[i] = dojo.widget.createWidget(namespacedWidgetType, newChildren[i]);

Change History (1)

comment:1 Changed 13 years ago by bill

Resolution: invalid
Status: newclosed

Tree has been rearchitected in Dijit 0.9 to use dojo.data to get data; this is no longer an issue.

Note: See TracTickets for help on using tickets.