Bug 191569

Summary: [WPE]Images with relative paths don't appear in preview tab
Product: [WebTools] Java Server Faces Reporter: Boris Bokowski <bokowski>
Component: UIAssignee: Ian Trimble <ian.trimble>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: raghunathan.srinivasan
Version: 2.0Keywords: helpwanted
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Boris Bokowski CLA 2007-06-07 15:43:44 EDT
I have images with relative paths in my HTML file (e.g. src="../images/Image53_marker1.png"). These images are displayed in the WYSIWYG pane, but the preview tab shows an icon for a missing image.

Could it be that the embedded web browser (looks like IE judging from the context menu) is not set up with the same working directory?
Comment 1 Raghunathan Srinivasan CLA 2007-06-07 19:52:11 EDT
Review for 2.0
Comment 2 Ian Trimble CLA 2007-06-08 14:19:39 EDT
I have a JSP with both relative and absolute image paths, using both JSF HTML's graphicImage and HTML's img tags, and it all works correctly in both the Design and Preview views.

Boris, is there more to the issue that you haven't specified? Could you please supply a set of simple repro steps?

Thanks,
 - Ian
Comment 3 Boris Bokowski CLA 2007-06-08 14:30:53 EDT
From CVS, check out org.eclipse.platform.doc.user (it's under /cvsroot/eclipse) and open concepts/concepts-6.htm in the Web Page Editor.
Comment 4 Ian Trimble CLA 2007-06-08 18:31:35 EDT
This is due to the preview mode's dependence on discovery of image URLs via functionality that depends on a project having the web facet. There is no intention to support web page editing outside of web-faceted projects in this release (WTP 2.0). We will revisit post-2.0.
Comment 5 Raghunathan Srinivasan CLA 2008-02-07 17:44:04 EST
Deferred due to lack of resources. Contributions from the community would be welcomed.