I have a scenario where,
onclick of a button in portlet-1 has to set a preference value and display the hideable panel in portlet-2 after the beforeRenderResponse() method of the portlet-2 has been executed.
I have tried all combinations like setting the action listener, action handler and refreshing the portlet-2 panel from script of portlet-1, similar approach mentioned in the below* link, but the value is getting updated only after the UI refresh and hence the output is blank for the first click, however from the second click onwards the value updates properly.
Other possible simplest way is, could anyone tell me how to set the portlet preference value from a script block?