panter/org.vaadin.mvp — Issue #6: Desalocate view from Memory
Author: vvaugelade
Created: 2011-10-21 09:36:49+00:00
State: open

Hi,

I'm using your Add-on in my Vaadin project. I was wondering if there was any way to avoid to stock the view in Memory. I'll explain:

When you navigate in the application, you use a view with components filled with some values (imagine a form the user have filled). Then you go away from the view replacing it by another one. But if you want to display the view again, you retrieve all the informations you had filled previously. Of course I can add a treatment to clear all components when my view is called but they are still allocate in memory. I would like to find a way to litteraly remove the instance of my view from the session and create a new one each time the view is called.
I've seen a way of doing this by setting them to null and let the garbage collector do his job but I was wondering if a more elegant solution was existing.