Opened 8 years ago

Closed 7 years ago

#12618 closed defect (patchwelcome)

[regression]dialog widget losing nested content attachpoints with dojox.dtl._Templated

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

Description (last modified by Adam Peller)

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 (4)

comment:1 Changed 8 years ago by bill

Component: GeneralDojoX DTL
Owner: set to Neil Roberts

comment:2 Changed 8 years ago by Adam Peller

Description: modified (diff)
Summary: dialog widget losing nested content attachpoints with dojox.dtl._Templated[regression]dialog widget losing nested content attachpoints with dojox.dtl._Templated

comment:3 Changed 8 years ago by Adam Peller

Description: modified (diff)

comment:4 Changed 7 years ago by ben hockey

Priority: highlow
Resolution: patchwelcome
Status: newclosed

dtl is unsupported. any further patches are welcome.

Note: See TracTickets for help on using tickets.