how to maintain portlet state

I have a problem with my portlet, when i try to switch between protlets/ maximize/minimize the portlets the page is getting refreshed clearing all the existing data.

For example when user does a search on a portlet and know he goes out to another protlet, when he comes back to the search portlet the search data retrived earlier should be maintained. which is not happening in my case.

coudnt maintain the values in the session as the search call happens thro Ajax.

Any suggestion/solutions .............

[530 byte] By [Naveenperia] at [2007-11-26 17:33:42]
# 1

When using AJAX, portlet state can be maintained using session attributes shared with APPLICATION_SCOPE.

Please see the technical article on using HttpSession/PortletSession and AJAX in portlets:

http://developers.sun.com/prodtech/portalserver/reference/techart/ajax-portlets .html

The code is in the portlet repository:

https://portlet-repository.dev.java.net/

ziebolda at 2007-7-9 0:01:43 > top of Java-index,Web & Directory Servers,Portal Servers...