This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 128317

Summary: url clause in user defined .css don't generate right path
Product: obsolete Reporter: aperezymadrid <aperezymadrid>
Component: visualwebAssignee: Matthew Bohm <mbohm>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description aperezymadrid 2008-02-25 14:59:27 UTC
If you put a user defined .css
<webuijsf:link id="link2" url="/resources/mystyle.css"/>

with an url() inside

.menuh_over{
   background: transparent url(horover.png) center center repeat-x;
}

The generated image path is not right because it doesn't include the context path and the "faces" folder. Mozilla
Firefox retrieves the image, but not IE 6. If you put the images in the main folder but the stylesheet is inside the
resources folder, it doesn't work either.

Workaround:
include the images inside a <style> section in each page header and put images in the root folder. Possibly you can get
the same if you put the stylesheet as a separate file in the root folder with the images.
Comment 1 Peter Zavadsky 2008-02-25 21:18:36 UTC
I think this belongs to JSF not the IDE, passing first to the JSF support.
Comment 2 Matthew Bohm 2008-06-09 21:39:17 UTC
Firefox and IE7 both pull up the image. I'm not sure there's anything we could do within the IDE about IE6.