[ 
https://issues.jboss.org/browse/JBSEAM-4905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Philippe Guinot updated JBSEAM-4905:
------------------------------------

    Steps to Reproduce: 
Create a JSF facelet with the following code
{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"/>
{code}

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

  was:
Create a JSF facelet with the following code
{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="/event/meetings/css/excel.css"/>
{code}

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


    
> parseStylesheet does not work on JBoss AS 7
> -------------------------------------------
>
>                 Key: JBSEAM-4905
>                 URL: https://issues.jboss.org/browse/JBSEAM-4905
>             Project: Seam 2
>          Issue Type: Bug
>          Components: Excel
>    Affects Versions: 2.2.2.Final
>         Environment: JBoss AS 7, Seam 2.2.2
>            Reporter: Philippe Guinot
>              Labels: classloader, css, jndi, resource, stream, stylesheet, url
>
> In the method org.jboss.seam.excel.css.CSSParser.parseStylesheet(String)
> the following code
> {code}
>       if (urlString.indexOf("://") < 0) {
>          cssStream = getClass().getResourceAsStream(urlString);
>       } else {
>          cssStream = new URL(urlString).openStream();
>       }
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues

Reply via email to