webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Update portlet preference

  • 1.  Update portlet preference

    Posted Mon September 28, 2015 02:53 PM

    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.

    Regards,
    Mohan Nataraj


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 2.  RE: Update portlet preference

    Posted Mon September 28, 2015 03:17 PM

    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.


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 3.  RE: Update portlet preference

    Posted Wed September 30, 2015 11:08 AM