Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-14864

DocumentQueryDynamicComponent: default value for pageSize cannot be overridden

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 14.6.3
    • 14.7.1, 15.0.0
    • None
    • Flagged
    • Pulsar

    Description

      It's not possible to change the default value for page size by configuration. It is defined in DocumentQueryDynamicComponentInfo as follows:

      @Parameter(name = "pageSize", defaultValue = "10")
      int getPageSize();
      

      Using a dynamic parameter 'pageSize' like so

      /pageSize:
      jcr:primaryType: hst:dynamicparameter
      hst:defaultvalue: '20'
      hst:valuetype: integer
      

      doesn't work out, but the intent does seem to support this in org.hippoecm.hst.platform.configuration.components.HstComponentConfigurationService#populateAnnotationComponentParameters and org.hippoecm.hst.core.component.HstParameterInfoProxyFactoryImpl.ParameterInfoInvocationHandler#invoke.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jhoffman Jeroen Hoffman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: