• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to remove managed bean from session

 
Muhammad Ijaz
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

I have developed a popup page Search.jsp (also its managedBean with session scope)with jsf1.2. this popup is opened from any parent jsp page. Now my requirement is, whenever search.jsp popup page is close then its managedBean should also be removed from the session.

Please help me......



 
Tim Holloway
Bartender
Posts: 18415
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Managed beans are just ordinary J2EE javabeans which were created by JSF on demand. You can delete them just like any other J2EE javabean.

However, web browsers don't send messages to the server when windows are closed. The closest you can get to that it to put an AJAX request into a JavaScript that gets triggered off a client window close event, and even that won't work if the user has turned off JavaScript.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!