2 Replies Latest reply: Aug 27, 2009 3:47 AM by 807574 RSS

    Question on PortletPreferences in Sun Java Portal server

    807574
      We are seeing some unusual behaviour in Sun java portal server. When we store portlet preferences, they are not getting affected to other users. As per our understanding, PortletPreferences are global. If set by one user they should affect all other users. But this is not happening.
      We have user Vignette portal as well. The behaviour is same. If set once, portlet preferences are affected for all users.

      But here in our case, with sun java portal server, different users are seeing different preferences. If we set some preferences in Edit mode, for a particular user, the other user is able to see the same changes. Is this expected behaviour?

      Are we supposed to add sun-portlet.xml as well? We are not adding sun-portlet.xml when deploying.

      Can someone please help us in resolving this issue?

      If not possible with portlet prefs, is there an alternative approach to store preferences at global level that affect all users?


      Regards,
      Pratap

      Edited by: PratapMaddi on Aug 24, 2009 6:34 AM

      Edited by: PratapMaddi on Aug 24, 2009 6:44 AM
        • 1. Re: Question on PortletPreferences in Sun Java Portal server
          807574
          Hi,
          As per the JSR168/286 spec Portlet preferences are per user..Once set, it doesn't become common among all users..

          Thanks
          Sriram
          • 2. Re: Question on PortletPreferences in Sun Java Portal server
            807574
            After reading some further documentation on the portlet modes, we understood that there are 2 types of prefernces. One is per user and other is at portlet instance level which are applicable to all users.
            Preferences stored during edit mode are applicable per user. Config mode or edit_defaults is the mode where the preferences are stored per portlet instance level which are applicable to all users.

            Does sunone portal support edit_defaults or config custom portlet mode?

            Is there a standard way to store preferences for all the users per portlet instance?

            Regards,
            Pratap