My GWT module switches in different views based on what the user is doing...starting with a login page view, then a main menu view, which itself switches sub-views based on the option selected to work on.
When I switch to a new view, I call a "deactivate" method on the view that's being taken out of commission. It basically takes whatever widget comprises its main container (typically a VerticalPanel) and calls clear() to remove all widgets that were added to it. Is that enough, or do I have to worry about other things? I do use my own EventBus (HandlerManager) that panels often connect to, so I am also removing those registrations. And I do the same for my Window resize handler when present. But what about all the clickhandlers and other handlers added to buttons, TextFields, etc. Do these all have to be removed, or will they go away when I clear the main component that contains all of those fields? -- 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=.
