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.
Summary: | Preview browser does not show page background image | ||
---|---|---|---|
Product: | obsolete | Reporter: | _ krystyna <krystyna> |
Component: | visualweb | Assignee: | _ gowri <gowri> |
Status: | STARTED --- | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
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. 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? Does not qualify as a P2 bug, making it a p3 Looks like '/' before resources/ is causing this problem. I will change the property editor's code not to prepend '/' when setting the image. |
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">