Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#7885 closed defect (fixed)

dojox.layout.ContentPane containing a widget with fixed ID can't be refreshed

Reported by: zumbo Owned by: Sam Foster
Priority: high Milestone: 1.3
Component: DojoX Layout Version: 1.2.0
Keywords: Cc:
Blocked By: Blocking:

Description

I have a dojox.layout.ContentPane? which I'm dynamically updating with content that includes other dojo widgets to which I've assigned an ID. In 1.1.1, this worked fine, but in 1.2.0, I'm getting:

Error parsing in _ContentSetter#Setter_centralPane_0 Error: Tried to register widget with id==innerWidget but that id is already registereddojo.js (line 211) already called!

It seems the old content isn't destroyed, so the new one, which contains an identical ID, can't be created. The error happens bot in FF2 and IE7. Using attr("content", ...) instead of setContent(...) has the same effect.

Attachments (1)

test.html (1.9 KB) - added by zumbo 11 years ago.
Test case

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by zumbo

Attachment: test.html added

Test case

comment:1 Changed 11 years ago by Adam Peller

Owner: changed from Adam Peller to Sam Foster

related to #7785, #7784?

comment:2 Changed 11 years ago by ben hockey

my fix proposed in #7784 will fix this test case

comment:3 Changed 11 years ago by bill

Milestone: tbd1.3
Resolution: fixed
Status: newclosed

Fixed by changes to fix #7784 etc.

comment:4 Changed 9 years ago by bill

Component: DojoxDojoX Layout
Note: See TracTickets for help on using tickets.