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 2015/09/07 16:02:46 UTC
[jira] [Closed] (SLING-4554) Support for OSGi-services in
data-sly-use
[ https://issues.apache.org/jira/browse/SLING-4554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radu Cotescu closed SLING-4554.
-------------------------------
> Support for OSGi-services in data-sly-use
> -----------------------------------------
>
> Key: SLING-4554
> URL: https://issues.apache.org/jira/browse/SLING-4554
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Affects Versions: Scripting Sightly Engine 1.0.2
> Reporter: Feike Visser
> Assignee: Radu Cotescu
> Fix For: Scripting Sightly Engine 1.0.4
>
>
> Currently it is not possible to directly use an OSGI-service within data-sly-use in Sightly.
> For simple services (like getting config-values), you need now to create a wrapper in Java/Javascript around this to make a call to the service.
> Request is here is add support in data-sly-use using an OSGi-service.
> {code}
> <div data-sly-use.myService="com.mypackage.MyService">
> ${myService.simpleMethod}
> </div>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)