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 104794

Summary: Preview browser does not show page background image
Product: obsolete Reporter: _ krystyna <krystyna>
Component: visualwebAssignee: _ gowri <gowri>
Status: STARTED ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ krystyna 2007-05-25 02:18:23 UTC
NB Trunk Build 0705240000
XP
JDK1.6.0_01


1. Create a ee1.4 or 1.5 project and set the page background
   to any .jpg file via page properties (defaults to tiled - OK)
2. press preview browser (or use context menu)
>get blank screen

here is contents of browser view source:
. . 
           <link href="resources/stylesheet.css" id="link1" rel="stylesheet" 
type="text/css" />

                </head>

                <body background="/resources/church-at-deuil.jpg" id="body1" 
onload="" onunload="" style="-rave-layout: grid">





But if, in jsp,change url from this:
<webuijsf:body binding="#{Page1.body1}" id="body1" imageURL="/resources/church-
at-deuil.jpg" style="-rave-layout: grid">
 
to this, by removing leading slash in path, then browser preview will work:


<webuijsf:body binding="#{Page1.body1}" id="body1" imageURL="resources/church-
at-deuil.jpg" style="-rave-layout: grid">
Comment 1 Peter Zavadsky 2007-05-25 09:39:28 UTC
The browser preview uses the renderers to get the output which is like the
(provided), it differs from the actuall app (that one has /WebappXX as prefix).
The question is whether the renderers output is correct (or of the property
editor) or whether the browser preview does correct thing (but what else) using
the renderers.
Passing to insync first, the browser preview is there.
Comment 2 _ sandipchitale 2007-06-08 02:22:56 UTC
This may be an issue of background image URL property editor. It should not 
set the value with leading slash? I am not sure how BrowserPreview action can 
do anything special in this case?
Comment 3 Winston Prakash 2007-07-10 01:05:42 UTC
Does not qualify as a P2 bug, making it a p3
Comment 4 _ gowri 2007-09-11 22:18:40 UTC
Looks like  '/' before resources/ is causing this problem. I will change the property editor's code not to prepend '/'
when setting the image.