Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4554

Support for OSGi-services in data-sly-use

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Scripting Sightly Engine 1.0.2
    • Scripting
    • None

    Description

      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.

      <div data-sly-use.myService="com.mypackage.MyService">
      ${myService.simpleMethod}
      </div>
      

      Attachments

        Activity

          People

            radu Radu Cotescu
            fvisser Feike Visser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: