Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8095691

css stylesheet cannot be loaded in an OSGi environment

XMLWordPrintable

      The method Scene.getStylesheets().add(String sheet) fails in OSGi environment as it runs in a classloader different from the bundle one (which calls the method).

      The API should provide at least a Classloader in the signature or better a resource provider interface.
      Scene scene = new Scene();
      scene.getStylesheets().add(String sheetName, ClassLoader loader)

      a workaround exists but cannot load images and subfiles in the css. This workaround consists in creating a temporary css file.


        1. jira-RT-36332.tar.gz
          38 kB
          Kevin Rushforth
        2. karaf.log
          610 kB
          David Grieve

            dgrieve David Grieve
            duke J. Duke
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: