Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-137369

Add method ManagementToolbarDisplayContext.getAdditionalProps()

    Details

      Description

      The <clay:management-toolbar /> tag has a convenience managementToolbarDisplayContext property which provides the ability for ManagementToolbarTag.java to get many of its view state attributes from an externalized model.

      However, when it comes to the additionalProps attribute, currently it has to be specified separately. For example, consider the following existing usage:

      modules/apps/trash/trash-web/src/main/resources/META-INF/resources/view.jsp
      <clay:management-toolbar
      	additionalProps="<%= trashManagementToolbarDisplayContext.getAdditionalProps() %>"
      	managementToolbarDisplayContext="<%= trashManagementToolbarDisplayContext %>"
      	propsTransformer="js/TrashManagementToolbarPropsTransformer"
      />
      

      This task involves adding the ManagementToolbarDisplayContext.getAdditionalProps() method so that the ManagementToolbarTag class can rely on the managementToolbarDisplayContext attribute for the additional properties.

      The resulting usage will be the same as the aforementioned usage, except that it will no longer be necessary to specify the additionalProps attribute:

      modules/apps/trash/trash-web/src/main/resources/META-INF/resources/view.jsp
      <clay:management-toolbar
      	managementToolbarDisplayContext="<%= trashManagementToolbarDisplayContext %>"
      	propsTransformer="js/TrashManagementToolbarPropsTransformer"
      />
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              drew.brokke Drew Brokke
              Reporter:
              neil.griffin Neil Griffin
              Engineering Assignee:
              Neil Griffin
              Recent user:
              Sophia Zhang
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.4.13 DXP GA1
                  Master