Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-16770

Fix page size selector values displayed on content views

    XMLWordPrintable

    Details

    • Impact type:
      Configuration Change
    • Upgrade notes:
      Hide

      Values displayed in the selector can now be contributed on the page provider definition using the following syntax:

      ...
              <pageSize>2</pageSize>
              <maxPageSize>0</maxPageSize>
              <pageSizeOptions>
                <option>10</option>
                <option>15</option>
                <option>20</option>
              </pageSizeOptions>
      ...
      

      Note this is only for display, the page size can still be set to any value even if not present in this list.

      Show
      Values displayed in the selector can now be contributed on the page provider definition using the following syntax: ... <pageSize>2</pageSize> <maxPageSize>0</maxPageSize> <pageSizeOptions> <option>10</option> <option>15</option> <option>20</option> </pageSizeOptions> ... Note this is only for display, the page size can still be set to any value even if not present in this list.
    • Sprint:
      nxNag Sprint 7.2.2

      Description

      When defining a default page size on a page provider, that is not part of the default hardcoded values (5L, 10L, 20L, 30L, 40L, 50L), this value is lost from the select options at first change.

      This is because the original page size cannot be retrieved on the page provider instance anymore, so it is not added to computed values.

      Steps to reproduce on the Admin > Users&Groups > Users content view:

      1. override the page provider to set a default page size to "100":

      <?xml version="1.0"?>
      <component name="org.nuxeo.ecm.platform.usermanager.pageproviders.override">
        <require>org.nuxeo.ecm.platform.usermanager.pageproviders</require>
        <extension target="org.nuxeo.ecm.platform.query.api.PageProviderService" point="providers">
          <genericPageProvider name="users_listing" class="org.nuxeo.ecm.platform.usermanager.providers.UsersPageProvider">
            <pageSize>100</pageSize>
          </genericPageProvider>
        </extension>
      </component>
      

      2. On the content view, 100 is present at first. Select "50" instead => "100" is not present anymore.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: