Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#8200 closed defect (fixed)

dtl HtmlTemplated does not generate domNode from template

Reported by: liucougar Owned by: liucougar
Priority: high Milestone: 1.3
Component: DojoX DTL Version: 1.2.1
Keywords: Cc:
Blocked By: Blocking:

Description

in dojox.dtl._HtmlTemplated.buildRendering, at the beginning, it sets srcNodeRef to be domNode

this.domNode = this.srcNodeRef;

at the end, it calls:

this._rendering =setTimeout(function(){ self.render(); }, 10);

according to dijit._Widget.buildRendering doc, after this function is called, domNode should be set to the proper node used as the root of the widget. However, what the current _HtmlTemplated is doing is not compliant to that assumption: it only renders the dom from template after a 10ms timeout, and it does not set the root of the rendered template as the new domNode

Attachments (1)

8200.patch (1.2 KB) - added by liucougar 11 years ago.
proposed patch to fix this: introduced a preCreate function to setup any data required for the rendering

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by liucougar

Attachment: 8200.patch added

proposed patch to fix this: introduced a preCreate function to setup any data required for the rendering

comment:1 Changed 11 years ago by liucougar

fixed in r15945

comment:2 Changed 11 years ago by Adam Peller

Component: GeneralDojoX DTL
Owner: changed from anonymous to liucougar

Can we close this?

comment:3 Changed 11 years ago by liucougar

Milestone: tbd1.3
Resolution: fixed
Status: newclosed

sorry, forgot to close this one

comment:4 Changed 11 years ago by Neil Roberts

(In [16779]) Refs #8200. Move system to allow preset of this.templated !strict

Note: See TracTickets for help on using tickets.