A widget that has an existing parent widget may not be added to the detach list problem

2010-03-02 Thread Maarten Zeinstra
Hi all, I've read all the posts about this subject and I understand what the restrictions are on this subject, however I cannot seem the figure this one out. I use the following lines of code(snippets): RootPanel ccWidget = RootPanel.get(cc_js_widget_container); ccWidget.setvisible(false);

Re: A widget that has an existing parent widget may not be added to the detach list

2009-06-25 Thread dan
Thanks, this helped me. On May 7, 2:31 pm, marco m.massen...@googlemail.com wrote: as it's not XHMTL, the div need an explicit /div to close them, or they will all be 'children' of the ones that precede them added a bunch of /divs and it all worked fine

Re: A widget that has an existing parent widget may not be added to the detach list

2009-05-07 Thread marco
This happens also for perfectly 'legal' HTML: div id=staticarea / div id=applicationarea div id=menuarea / div id=clientarea / div id=actionpanel / /div (the reason for doing so is that by using CSS I can easily position the four areas in the client area - see

Re: A widget that has an existing parent widget may not be added to the detach list

2009-05-07 Thread Vitali Lovich
No it's not. You aren't using it correctly. Panel actionsarea = RootPanel.get(actionpanel); ActionsView actions = new ActionsView(); actions.setMainPanel(actionsarea); I'm going to go out on a limb here say it's the third line where the exception gets thrown. Here's what I think you are doing

Re: A widget that has an existing parent widget may not be added to the detach list

2009-05-07 Thread marco
nope - sadly it's a much more of a n00b error :/ someone who knows A LOT more about GWT than me, correctly pointed out that it's my HTML that's borked as it's not XHMTL, the div need an explicit /div to close them, or they will all be 'children' of the ones that precede them added a bunch of

Re: A widget that has an existing parent widget may not be added to the detach list

2009-04-28 Thread kohlyn
Any suggested workarounds? I currently load a page layout in HTML (Header/Menu Bar/Footer) ... then in each section I load different HTML layouts depending on the user, and then I add the controls. On Apr 27, 6:15 pm, Vitali Lovich vlov...@gmail.com wrote: Yes this has already come up on the

Re: A widget that has an existing parent widget may not be added to the detach list

2009-04-28 Thread Vitali Lovich
Yes. Use GWT properly. Don't use raw HTML. That's your problem. Instead of adding an HTML widget that wraps a div, use a SimplePanel set it's id if you need to. Look at the showcase - it shows you a brief overview of most (all?) the widgets GWT has. Think of using raw HTML in your app as

A widget that has an existing parent widget may not be added to the detach list

2009-04-27 Thread kohlyn
I'm getting the following errors with 1.6.4 on a Mac. A widget that has an existing parent widget may not be added to the detach list The HTML is: body !-- OPTIONAL: include this if you want history support -- iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1'

Re: A widget that has an existing parent widget may not be added to the detach list

2009-04-27 Thread Vitali Lovich
Yes this has already come up on the mailing list. This was always illegal, just uncaught prior to 1.6. You cannot wrap two elements in GWT if they already have a parent/child relationship in the DOM (causes a mismatch in the trees). Do a search you'll find the response from the GWT developer