You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Feike Visser (JIRA)" <ji...@apache.org> on 2017/01/27 12:46:24 UTC

[jira] [Comment Edited] (SLING-6490) Sightly doesn't render valid style attribute-value

    [ https://issues.apache.org/jira/browse/SLING-6490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15842768#comment-15842768 ] 

Feike Visser edited comment on SLING-6490 at 1/27/17 12:46 PM:
---------------------------------------------------------------

[~vladb] But also things like styleString isn't working.


was (Author: fvisser):
But also things like styleString isn't working.

> Sightly doesn't render valid style attribute-value
> --------------------------------------------------
>
>                 Key: SLING-6490
>                 URL: https://issues.apache.org/jira/browse/SLING-6490
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Feike Visser
>              Labels: Sightly
>
> I have the following piece of Java:
> {code}
> public class Style {
>     public String style = "background-image: url('/path/to/image.jpg');";
> }
> {code}
> I can't get this value printed unless I use @ context = 'unsafe'
> {code}
> <div class="container" data-sly-use.fv="Style" style="${ fv.style @ context='styleToken' }">
>   
> </div>
> {code}



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