aspose file tools
The moose likes JSF and the fly likes How to remove managed bean from session Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "How to remove managed bean from session" Watch "How to remove managed bean from session" New topic
Author

How to remove managed bean from session

Muhammad Ijaz
Ranch Hand

Joined: Mar 03, 2009
Posts: 34

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......




IBM Certified WebSphere Commerce Application Developer

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14568
    
    7

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to remove managed bean from session
 
Similar Threads
JSP Popup Object
JSP include
popup window loses variable
post hidden value to new window opened by javascript ?
How can javascript talk with sessions?