Jens,

They way I use the widgets, maybe not supported, work perfectly. It is made
part of the widget hierarchy. And when I remove the widget, everything is
again cleaned up. I did a lot of memory leak investigating and it is just
working the way it should. Even if the window close event is triggered,
they get properly cleaned up just like the rest of the widget hierarchy.

The wrap methods on Widget assume and do too much and that makes them not
usable beyond the scope of wrapping non nested widgets.

David

On Mon, Jun 3, 2013 at 5:26 PM, Jens <jens.nehlme...@gmail.com> wrote:

>
> From my experimentation with wrap() I can see very few circumstances in
>> which case it is actually useful.  It appears to be useful where there is
>> only one page.  The way nesting of widgets is handled would make it tricky
>> in anything more complicated.
>>
>
> Yes, imagine a login application. Its UI is pretty easy and you could
> design it right in your host html page, so no RootPanel, no LayoutPanels,
> etc. If you want to do any useful with it you would get a handle to these
> DOM elements and now you can decide if you want to work with the low level
> element API or if you want the higher level Widget API by using any
> existing *.wrap() method to attach GWT widgets to these elements. These
> widgets created by *.wrap() do not have any parent widgets and will cleanup
> themselves once you leave the login page. So IMHO its indeed for simple use
> cases.
>
> There are probably a good reasons why you can not wrap elements that are
> already managed by a widget. E.g. if you remove the widget, what would
> happen to the wrapped widget then?
>
> -- J.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to