Opened 11 years ago

Last modified 10 years ago

#12618 closed defect

dialog widget losing nested content attachpoints with dojox.dtl._Templated — at Initial Version

Reported by: victor.choueiri Owned by:
Priority: low Milestone: tbd
Component: DojoX DTL Version: 1.6.0
Keywords: dialog dojox.dtl._Templated attachpoints Cc:
Blocked By: Blocking:

Description

When creating a template with a dialog widget and a nested widget, the inner widget's attachpoint is no longer accessible.

Sample templateString: '<div><div dojoType="dijit.Dialog" title="test" dojoAttachPoint="dia_widget"><input dojoType="dijit.form.TextBox?" dojoAttachPoint="txt_widget" /></div></div>'

This only occurs if the widget uses dojox.dtl._Templated rather than dijit._Templated.

This only occurred after switching to 1.6.0 from 1.5.

A more complete example that can reproduce this:

dojo.require("dojo.parser");
dojo.require("dijit._Widget");
dojo.require("dojox.dtl._Templated");
dojo.require("dijit.Dialog");
dojo.require("dijit.form.TextBox");

dojo.ready(function(){
    
    dojo.declare("my.Widget", [dijit._Widget, dojox.dtl._Templated], {
        templateString: '<div><div dojoType="dijit.Dialog" title="test" dojoAttachPoint="dia_widget"><input dojoType="dijit.form.TextBox" dojoAttachPoint="txt_widget" /></div></div>',
        widgetsInTemplate: true
    });
    
    dojo.parser.parse();
    
    var wdg = dijit.byId("myWdg");
    console.log("dialog attachpoint: ", wdg.dia_widget, "txt attachpoint: ", wdg.txt_widget);
});

wdg.txt_widget is undefined, switching to dijit._Templated works fine.

Change History (0)

Note: See TracTickets for help on using tickets.