Hi, I'm using GWT 2.1 and getting this error: java.lang.AssertionError: A widget that has an existing parent widget may not be added to the detach list
When I try to add a ListBox in the "TD"s elements with id
leftMenuFilterContainer and rightMenuFilterContainer
to a HTMLPanel (via UIBinder) to create a DialogBox:
<g:DialogBox>
<g:HTMLPanel>
<div style="top: 450px; left: 395px; display: block;">
<div class="popup">
<table>
<tbody>
<tr>
<td class="tl"></td>
<td class="b"></td>
<td class="tr"></td>
</tr>
<tr>
<td class="b"></td>
<td class="body">
<div
class="content" style="display: block;">
<div
style="" id="filterOptions">
<h2>Filter</h2>
<table cellspacing="0" cellpadding="0" width="98%"
class="filter-table">
<tbody>
<tr class="oddrow">
<td id="leftMenuFilterContainer" width="50%">
</td>
<td id="rightMenuFilterContainer" width="50%">
</td>
</tr>
</tbody>
</table>
....
</g:HTMLPanel>
</g:DialogBox>
the code:
final ListBox menu = new ListBox();
menu.addItem(...);
...
RootPanel.get().get("leftMenuFilterContainer").add(menu); // this row
generate the error
I googled around and it looks depending by nested <div>s but even
knowing that it doesn't help.
Any idea?
Thanks,
Julio
--
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.
