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.