Opened 12 years ago

Closed 12 years ago

#2620 closed defect (invalid)

Dojo 0.4.2rc2 widgetsInTemplate attachPoint to widget broken

Reported by: alain DOT. odea .AT! gmail .DOT com Owned by: bill
Priority: high Milestone:
Component: Widgets Version: 0.4.2rc1
Keywords: widgetsInTemplate, attachPoint Cc:
Blocked By: Blocking:

Description

The template loader refuses to create an instance variable and element in the children array in the parent widget for a template containing only a widget. In more complex templates it appears to lose all widgets with the same DOM parent as the first widget in the template.

This originally occurred in a much more complex template, but I provide the reduction below in the interest of simplicity.

Template:

<input dojoAttachPoint="input1" dojoType="Textbox" />

In the template above the widget using it should have this.input1 and this.children. It has neither. this.children is empty and there is no this.input1.

Change History (2)

comment:1 Changed 12 years ago by alain DOT. odea .AT! gmail .DOT com

I made a bad assumption about what is available in fillInTemplate. Please close the ticket above. I will do a more thorough investigation of the original problem to see if I can reproduce it.

Thanks, Alain

comment:2 Changed 12 years ago by James Burke

Resolution: invalid
Status: newclosed

Closing per reporter's request.

Note: See TracTickets for help on using tickets.