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

getProperty tag fails when returnClass parameter is an expression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Scripting JSP-Taglib 2.2.4
    • Scripting
    • None

    Description

      Similar to SLING-5653 the getProperty tag cannot handle an expression for its returnClass parameter.

      I.e. the following causes a ClassCastException:

      <c:set var="type" value="java.util.Calendar"/>
      <sling:getProperty properties="${props}" key="jcr:created" var="created" returnClass="${type}" />
      

      Attachments

        Issue Links

          Activity

            People

              jsedding Julian Sedding
              jsedding Julian Sedding
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: