Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#14841 closed defect (duplicate)

widgetsInTemplate for dojox.dtl._DomTemplated widgets not working properly

Reported by: Michael Wu Owned by: Michael Wu
Priority: undecided Milestone: tbd
Component: DojoX DTL Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:


I created two widgets based on "dijit/_WidgetBase" and "dojox/dtl/_DomTemplated": WidgetA and WidgetB.

In WidgetA's templateString, WidgetB is defined declarative, and widgetsInTemplate is set to true.

When WidgetA is instantiated, is gives:

TypeError: this.domNode.parentNode is null.

The problem seems to be that WidgetB's srcNodeRef isn't being set by WidgetA's widgetsInTemplate parsing code.

Manually doing parser.parse() inside WidgetA's postCreate() works well.

Attachments (1) (1.4 KB) - added by Michael Wu 9 years ago.
Test case for #14841

Download all attachments as: .zip

Change History (6)

comment:1 Changed 9 years ago by ben hockey

Owner: changed from Neil Roberts to Michael Wu
Status: newpending

Is this the same as #12644?

If not, please attach a test case

Changed 9 years ago by Michael Wu

Attachment: added

Test case for #14841

comment:2 Changed 9 years ago by Michael Wu

Status: pendingnew

Attachment ( added by ticket reporter.

comment:3 in reply to:  1 Changed 9 years ago by Michael Wu

Replying to neonstalwart:

Is this the same as #12644?

If not, please attach a test case

I am not sure if this is a duplicate of #12644 as I don't fully understand it. I've attached a test case ( for my issue. Unzip all 3 files into a web server directory, you'll need to change dojoConfig.packages in index.html accordingly to your server path.

An online example could be access at: Open with Firebug and you should see the

this.domNode.parentNode is null



comment:4 Changed 9 years ago by ben hockey

Resolution: duplicate
Status: newclosed

Duplicate of #11440.
thanks for the test case. now i can see that it's a duplicate of #11440 which also has a patch that should fix your issue. unfortunately that patch has been on that ticket for almost 2 years. draw your own conclusions about what that means regarding the level of support for dtl.

comment:5 Changed 9 years ago by Michael Wu

Hi neonstalwart, thanks for the pointer. I'll try the patch later.

Any reason that the patch of #11440 isn't merged? Any thing that I can do to help?

Note: See TracTickets for help on using tickets.