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

css stylesheet cannot be loaded in an OSGi environment

    XMLWordPrintable

    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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: