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

New functionality to resolve scripts by name

    XMLWordPrintableJSON

Details

    Description

      I'm looking for a way to include a jsp script from within another but
      respecting the resource type hierarchy. so for example:

      + myapp
      + A
      + A.jsp
      + content.jsp
      + B

      • sling:resourceSuperType = "A"
        + B.jsp

      and in my B.jsp i want to include the "content.jsp" but respecting the resource type hierarchy.

      suggest to add: <slng:include scriptSelector="content" /> that internally overwrites the request selector during the script selection phase.

      see http://markmail.org/message/la4rvmcdd6whpvhl

      Attachments

        1. SLING585.patch
          37 kB
          Carsten Ziegeler

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              tripod Tobias Bocanegra
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: