Changes between Initial Version and Version 1 of Ticket #11337
- Timestamp:
- Jun 23, 2010, 11:51:55 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11337
-
Property
Milestone
changed from
tbd
tofuture
-
Property
Summary
changed from
Adding AccordionContainer as contents of ContentPane causes duplicate ID
toContentPane: setting AccordionContainer as contents causes duplicate ID
-
Property
Milestone
changed from
-
Ticket #11337 – Description
initial v1 1 I have a TabContainer, which is parent to a ContentPane. I attempt to set the "content" attr of thatContentPane with this line:1 I have a !TabContainer, which is parent to a !ContentPane. I attempt to set the "content" attr of that !ContentPane with this line: 2 2 3 {{{ 3 4 this.buddyTripsAccordion.attr("content", this.buddyTrips.domNode); 5 }}} 4 6 5 7 and I get this error in the firebug console: 6 8 9 {{{ 7 10 Error parsing in _ContentSetter#Setter_dijit_layout_ContentPane_1_1 Error: Tried to register widget with id==tripListAccordion but that id is already registered { message="Tried to register widge...d is already registered", more...} 11 }}} 8 12 9 The variable "buddyTrips" is an instance of a custom widget called "TripList," which contains the following AccordionContainer definition: 13 The variable "buddyTrips" is an instance of a custom widget called "!TripList," which contains the following !AccordionContainer definition: 14 15 {{{ 10 16 <div dojoType="dijit.layout.AccordionContainer" id="tripListAccordion" buttonWidget="rides.widget.TripListAccordionButton" class="tripListAccordion" dojoAttachPoint="accordionContainer" duration="200" >. 11 17 }}} 12 18 I am certain that this widget is only added once. This error happens 4 lines after I programmatically create the TripList widget, so there's no time for anything else to happen to this object. I can't figure out why this ID would be getting registered twice; I'm concluding it must be a bug. 13 19 14 20 15 In case it matters, here's the definition of my TabContainer/ContentPane (I'm adding the TripList to the "buddyStuffAccordion" one) 21 In case it matters, here's the definition of my !TabContainer/!ContentPane (I'm adding the !TripList to the "buddyStuffAccordion" one) 22 23 {{{ 16 24 <div dojoType="dijit.layout.TabContainer" dojoAttachPoint="accordionContainer" useMenu="false" useSlider="false" class="leftHandSummary"> 17 25 <div dojoType="dijit.layout.ContentPane" dojoAttachPoint="invitesAccordion" title="Buddy Requests"> </div> 18 26 <div dojoType="dijit.layout.ContentPane" dojoAttachPoint="buddyStuffAccordion" title="Buddy Stuff"> </div> 19 27 </div> 28 }}}