Bug 191569 - [WPE]Images with relative paths don't appear in preview tab
Summary: [WPE]Images with relative paths don't appear in preview tab
Status: NEW
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Ian Trimble CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-06-07 15:43 EDT by Boris Bokowski CLA
Modified: 2010-03-31 18:56 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.