Details

    • Steps to Reproduce:
      Hide

      Create a JSF facelet with the following code

      
      <e:workbook xmlns:e="http://jboss.com/products/seam/excel" 
      				xmlns:f="http://java.sun.com/jsf/core" 
      				xmlns:ui="http://java.sun.com/jsf/facelets" 
      				xmlns:c="http://java.sun.com/jstl/core">
      	
      	<e:link URL="/css/excel.css"/>
      

      with the xhtml and css file within your WAR's WebContent.

      Show
      Create a JSF facelet with the following code <e:workbook xmlns:e= "http: //jboss.com/products/seam/excel" xmlns:f= "http: //java.sun.com/jsf/core" xmlns:ui= "http: //java.sun.com/jsf/facelets" xmlns:c= "http: //java.sun.com/jstl/core" > <e:link URL= "/css/excel.css" /> with the xhtml and css file within your WAR's WebContent.

      Description

      In the method org.jboss.seam.excel.css.CSSParser.parseStylesheet(String)
      the following code

            if (urlString.indexOf("://") < 0) {
               cssStream = getClass().getResourceAsStream(urlString);
            } else {
               cssStream = new URL(urlString).openStream();
            }
      

      does not work.

      Indeed, if the urlString is a relative url, the current class' classLoader won't be able to get the resource from the WebContent. The current application context should be used instead.

      As a workaround I tried to pass the JNDI path of the resource which is an absolute URL. But it does not work, indeed such an URL as the following form 'jndi:/default-host/mypath/mystyle.css' and so does not include the '://' pattern.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                guinotphil Philippe Guinot
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: