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

Patch Submission: Expression Language (EL) Functions for JSP Taglib

    XMLWordPrintableJSON

    Details

      Description

      I've noticed that the Sling Resource API is not very accessible for tag- and EL-focused JSP development. In order to promote readable JSP code, I created a set of static methods to implement commonly-used ResourceResolver methods as well as to expose the rather useful ResourceUtil methods as EL functions. The functions use ResourceWrappers to work around the isse https://issues.apache.org/jira/browse/SLING-1414 where the Resource.getPath() method is inaccessible in EL for JcrNodeResource objects.

      I've found these taglib functions to be very useful for Day CQ5 development, so I thought I'd offer to contribute them to the project.

        Attachments

        1. add-files.zip
          5 kB
          Mark Adamcin
        2. SLING-1500.diff
          57 kB
          Dan Klco
        3. taglib11.tld.patch
          10 kB
          Mark Adamcin

          Issue Links

            Activity

              People

              • Assignee:
                klcodanr Dan Klco
                Reporter:
                madamcin Mark Adamcin
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: