save managed bean to notes document
- by Ove Stoerholt
In a managed bean you have fields, and the fields have getters and setters.
But I also need to save values back to, in this case, a Notes profile document.
So I have a loadProfileDocument and a saveProfileDocument method.
I was thinking of using the bean in the application scope.
How do I make sure the profile document is saved?
Do I have to call the saveProfileDocument from the setter?
Do I call the saveProfileDocument() explisitly?
Could I use a destructor (finalize)?
Or what...???...