I have a similar problem that only started when I started using GWT
1.6.

In my code I create a fieldset HTML elememt and add it to a flex table
thus.

<code>
public static HTML createFieldSet(String as_legend, String
div_element_id) {
        return new HTML("<fieldset>"
                + "<legend>" + as_legend+ "</legend>"
                + "<div  id='" + div_element_id + "'></div>"
                + "</fieldset>");
  }

 HTML html = createFieldSet("My Fieldset", "MYID");
FlexTable table = new FlexTable();
table.setWidget(0, 0, html);
</code>


In the onload method of my window, I then inject a new widget into the
ID for the fieldset div with ID "MYID" as follows

Widget somewidget ...
RootPanel.get("MYID").add(somewidget);

I get the same error as described above in hosted mode. In web mode it
works fine.


I tired using the following to fix the problem.

<code>
Element p = DOM.getElementById("MYID");
p.appendChild(somewsidget.getElement());
</code>

THis works in hosted mode but fails in web mode.

Any ideas?

Thanks,

Melody

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to