Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-62900 Simplify usage of the Configuration API for modules
  3. LPS-63501

Introduce utility method to obtain Configuration object with values overridden from a parameter Map

    Details

      Description

      In configuration JSPs it is pretty common to want to override whatever comes from the ConfigurationProvider with the values coming from the request to write them in a form. The low level Settings API allows doing that with a ParameterMapSettingsLocator as follows:

      blogsPortletInstanceConfiguration = ConfigurationProviderUtil.getConfiguration(BlogsPortletInstanceConfiguration.class, new ParameterMapSettingsLocator(request.getParameterMap(), new PortletInstanceSettingsLocator(themeDisplay.getLayout(), portletDisplay.getPortletResource())));
      

      But there is no equivalent yet in the new convenience methods, so those JSPs still use the low level API.

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              jorge.ferrer Jorge Ferrer
              Recent user:
              Brian Chan
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 25 weeks ago

                Packages

                Version Package
                7.0.0 CE RC1