You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Julian Sedding (JIRA)" <ji...@apache.org> on 2016/04/12 08:59:25 UTC

[jira] [Resolved] (SLING-5658) getProperty tag fails when returnClass parameter is an expression

     [ https://issues.apache.org/jira/browse/SLING-5658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Sedding resolved SLING-5658.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: Scripting JSP-Taglib 2.2.6

Fixed in [r1738703|https://svn.apache.org/r1738703].

> getProperty tag fails when returnClass parameter is an expression
> -----------------------------------------------------------------
>
>                 Key: SLING-5658
>                 URL: https://issues.apache.org/jira/browse/SLING-5658
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>    Affects Versions: Scripting JSP-Taglib 2.2.4
>            Reporter: Julian Sedding
>            Assignee: Julian Sedding
>            Priority: Minor
>             Fix For: Scripting JSP-Taglib 2.2.6
>
>
> Similar to SLING-5653 the getProperty tag cannot handle an expression for its {{returnClass}} parameter.
> I.e. the following causes a ClassCastException:
> {code}
> <c:set var="type" value="java.util.Calendar"/>
> <sling:getProperty properties="${props}" key="jcr:created" var="created" returnClass="${type}" />
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)