How-to remove a jsf backing bean from session?
843842Oct 20 2005 — edited Nov 18 2009How can I find the reference to a backing bean (with session scope) and then remove the bean?
I may have painted myself into a corner. When most of my pages are navigated to, they get key info from session and then initially populate the page fields. I populate the fields in the constructor with values from the database based on the keys found in session. So the second time a particular page is called the values may be stale or completely unrelated to the page navigated from because the bean already exists and, naturally, the constructor is never called.
I'm thinking if I could remove the backing bean, jsf wouldn't find it so it would be recreated on subsequent navigations. Since the constructor would be called with every navigation to the page, the values would not be stale or unrelated.
Any help would be greatly appreciated.
TIA,
Al Malin