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

css stylesheet cannot be loaded in an OSGi environment

    Details

      Description

      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.


        Attachments

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

          Issue Links

            Activity

              People

              • Assignee:
                dgrieve David Grieve (Inactive)
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: