Changes between Initial Version and Version 1 of Ticket #8041


Ignore:
Timestamp:
Nov 8, 2008, 12:32:03 AM (12 years ago)
Author:
bill
Comment:

Hi,

When you say "attach it to a ContentPane" are you referring to putting the new widget inside of a ContentPane?

The current code you have declares a ContentPane called "yyy":

<p dojoType='dijit.layout.ContentPane' id="yyy" ></p>

And then executes:

new ulcm.Form({}, "yyy");

... which means to turn the "yyy" node into a ulcm.Form... it's very strange, because "yyy" is a ContentPane already, so it's as though you are trying to overwrite one widget with another, which isn't a supported operation.

If you are trying to put ulcm.Form inside the ContentPane you could do

myContentPane.attr('content', "<div dojoType='ulcm.Form'></div>");

or even

myContentPane.domNode.appendChild(ulcm.Form.domNode);

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8041 – Description

    initial v1  
    66 - If I instantiate this widget from the markup, it is ok
    77 - If I instantiate this widget programmatically and attach it to a regular dom node, it is ok.
    8  - If I instantiate the widget programmatically  and try to attach it to a ContentPane, it does not work:
     8 - If I instantiate the widget programmatically  and try to attach it to a !ContentPane, it does not work:
    99
    1010It complains that it tries to register the widget a second time. What I think is happening is that when I insert the widget to the ContentNode, the parser starts parsing the html and since it sees the already created 'widgetid', it is confused.