You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (JIRA)" <ji...@apache.org> on 2016/07/08 09:44:11 UTC
[jira] [Assigned] (SLING-5825) Add support for implicit conversion
of Enum to String
[ https://issues.apache.org/jira/browse/SLING-5825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radu Cotescu reassigned SLING-5825:
-----------------------------------
Assignee: Radu Cotescu
> Add support for implicit conversion of Enum to String
> -----------------------------------------------------
>
> Key: SLING-5825
> URL: https://issues.apache.org/jira/browse/SLING-5825
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Affects Versions: Scripting Sightly Engine 1.0.2
> Reporter: Konrad Windszus
> Assignee: Radu Cotescu
> Priority: Minor
>
> Currently Sightly does not support implicit conversion from Enum to String like in
> {code}
> <div class="${member.inviteStatus}">...</div>
> {code}
> The class attribute will always be empty in case when {{member.inviteStatus}} is an Enum.
> Instead you have to write
> {code}
> <div class="${member.inviteStatus.toString}">...</div>
> {code}
> Sightly should implicitly convert enums to Strings if they are just given out.
> This is similar to SLING-5053.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)