Opened 11 years ago

Last modified 11 years ago

#11337 closed defect

Adding AccordionContainer as contents of ContentPane causes duplicate ID — at Initial Version

Reported by: Grimmy102 Owned by:
Priority: high Milestone: future
Component: Dijit Version: 1.4.2
Keywords: Cc:
Blocked By: Blocking:


I have a TabContainer?, which is parent to a ContentPane?. I attempt to set the "content" attr of that ContentPane? with this line:

this.buddyTripsAccordion.attr("content", this.buddyTrips.domNode);

and I get this error in the firebug console:

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...}

The variable "buddyTrips" is an instance of a custom widget called "TripList?," which contains the following AccordionContainer? definition: <div dojoType="dijit.layout.AccordionContainer?" id="tripListAccordion" buttonWidget="rides.widget.TripListAccordionButton?" class="tripListAccordion" dojoAttachPoint="accordionContainer" duration="200" >.

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.

In case it matters, here's the definition of my TabContainer/ContentPane? (I'm adding the TripList? to the "buddyStuffAccordion" one) <div dojoType="dijit.layout.TabContainer?" dojoAttachPoint="accordionContainer" useMenu="false" useSlider="false" class="leftHandSummary">

<div dojoType="dijit.layout.ContentPane?" dojoAttachPoint="invitesAccordion" title="Buddy Requests"> </div> <div dojoType="dijit.layout.ContentPane?" dojoAttachPoint="buddyStuffAccordion" title="Buddy Stuff"> </div>


Change History (0)

Note: See TracTickets for help on using tickets.