Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4212

Sling Models: Allow multiple values from ValueMap in the resource-path injector

    XMLWordPrintableJSON

Details

    Description

      The current implementation of the resource-path injector does not support multiple values. I think it could be useful to inject a list of paths from the valuemap.

      I have created a small patch to allow this. Right now it only allows them from the value map since I didn't want to change the API without consulting you first. I you agree I can do this change as well. I also added a test case for it.

      You can see a pull request in https://github.com/apache/sling/pull/51

      If there anything I can do to improve this patch, please let me know.

      Attachments

        1. resourcePath-API.patch
          24 kB
          Santiago García Pimentel
        2. resourcePath-API_updated.patch
          24 kB
          Stefan Seifert
        3. resourcePath-API_noRequiredCheck.patch
          23 kB
          Stefan Seifert

        Activity

          People

            sseifert Stefan Seifert
            santiagozky Santiago García Pimentel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: