Reset preferences

Hi All,
I have a portlet bean which is in session scope. I have created preferences in my portlet A, to wire information to other portlet B.

I want to refresh the preferences to empty values, at the time of loading the page. There is a catch here. I will do a async refresh of my portlet A on a user action.

Can any body suggest me how to do it?

Thanks in advance,

  • Kumar

Hi
one option would be to create a method that sets the preference values to empty Strings (or whatever type you used) and stores those preferences. You place then an Async Hidden Command in your view and an Script Block. In the script block you would “click” the Async Hidden Command (using CAF JavaScript) reacting to the event “load” of the view (you can google for a sample on how to do this).

hope this helps,
Javier