Uploaded image for project: 'ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)'
  1. ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)
  2. LEP-2888

Portlet Preferences lookup doesn't behave as DTD describes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 4.3.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Hi.

      I've duplicated the journal content portlet and modified the new portlet with the following settings in
      liferay-portlet.xml.

      The key differences are:
      instanceable =false;
      preferences-unique-per-layout=false;

      The expected behavior is for this portlet to share the same content and preferences across multiple pages. The actual behavior is that the preferences-unique-per-layout parameter is ignored.

      I've looked over the code and found this to be the case in a number of places.

      Please see PortletPreferencesFactory.getPortetSetup for and do a call lookup. The calls are usually hard coded with the parameter of unique-per-layout set to true.

      Is there a reason for this? Is it a bug? It seems inconsistent with the DTD description.

      Please advise

      For reference:

      <portlet>
      <portlet-name>EXT_PH</portlet-name>
      <struts-path>journal_content</struts-path>
      <configuration-path>/journal_content/edit_configuration</configuration-path>
      <portlet-data-handler-class>com.liferay.portlet.journal.lar.JournalContentPortletDataHandlerImpl</portlet-data-handler-class>
      <preferences-unique-per-layout>false</preferences-unique-per-layout>
      <preferences-owned-by-group>true</preferences-owned-by-group>
      <use-default-template>false</use-default-template>
      <restore-current-view>false</restore-current-view>
      <layout-cacheable>false</layout-cacheable>
      <instanceable>false</instanceable>
      <private-request-attributes>false</private-request-attributes>
      <private-session-attributes>false</private-session-attributes>
      <render-weight>1</render-weight>
      <add-default-resource>true</add-default-resource>
      <system>true</system>
      </portlet>

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package