Feike Visser created SLING-4554:
-----------------------------------

             Summary: 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
            Reporter: Feike Visser


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)

Reply via email to