#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: |
Description
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)
Change History (6)
comment:1 follow-up: 3 Changed 10 years ago by
Owner: | changed from Neil Roberts to Michael Wu |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
Status: | pending → new |
---|
Attachment (dojo-test-14841.zip) added by ticket reporter.
comment:3 Changed 10 years ago by
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 (dojo-test-14841.zip) 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: http://dev.witness24.com/~michael/dojo-test-case-14841/. Open with Firebug and you should see the
this.domNode.parentNode is null
error.
Thanks.
comment:4 Changed 10 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:5 Changed 10 years ago by
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?
Is this the same as #12644?
If not, please attach a test case