Update portlet preference

Hi Experts,

I have two portlets called A and B. When user clicks a button in A, we will pass few parameters to B. B has same variables as portlet preferences. I have to do some logic if value of one field is equal to true,then it should be updated to false. So same logic will not be executed when user refreshes the page.

I would like to know how to update portlet preference in java method . Can we update the preferences in before render response method.

Thanks in advance for your help.

Mohan Nataraj

Sorry, per the portlet specification, the preferences of a portlet may only be modified in an action request. Changing those during the portlet render request is not allowed.

So the preference values would have to be modified during the action handler of the button you clicked on.

Thanks Eric…