It depends on your application purpose. If you want to keep Dialog instance
for furthur use, you can keep the reference variable not to set it to null.
GWT eases the developer to remember destroying widgets.

When you set a widget's reference to null, GWT will free the resource
automatically.

Kevin

On Thu, Dec 18, 2008 at 4:58 PM, Fred Janon <[email protected]> wrote:

> I use a couple of dialogs that are created and shown by clicking on buttons
> on a page. The dialogs have widgets with listeners. Once the user is done
> with a dialog, it's hidden (I guess there is no Dialog.destroy method or
> equivalent). The dialogs can be used as many times as the user clicks on the
> buttons. Do I need to remove the listeners and detach the dialog when the
> dialog is hidden? Do I need to create each dialog only once and re-use it?
> What the best practices for dialogs?
>
> Thanks
>
> Fred
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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