[
https://jira.jboss.org/jira/browse/JBIDE-3671?page=com.atlassian.jira.plu...
]
Alexey Kazakov commented on JBIDE-3671:
---------------------------------------
'images' is not absolute path.
Absolute path is somthing like 'http://www.somesite.com/images/im.gif"
Anyway, path that starts with "/" is relative to Web-Content (in case of jsf
components) but relative path without "/" is relative to request context path.
For example if you go to
www.somesite.com/index.jsp (<Web-Content>/index.jsp) but
index.jsp forward request to <Web-Content>/someSubFolder/page.jsp then
<h:graphicImage value="images/image.gif"/> will look for image in
<Web-Content>/images/image.gif.
But if you go to
www.somesite.com/someSubFolder/page.jsp directly then
<h:graphicImage/> will look for image in
<Web-Content>/someSubFolder/images/image.gif
So it's not safe to use paths which are relative to request.
It was a reason for us to propose only paths which are relative to Web-Content.
CA for absolute paths
---------------------
Key: JBIDE-3671
URL:
https://jira.jboss.org/jira/browse/JBIDE-3671
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: jsp/jsf/xml source editing
Affects Versions: 3.0.0.CR2
Reporter: Yura Zhishko
Assignee: Alexey Kazakov
Attachments: screenshot-1.jpg, test.zip
1) Create (or import) any project with the same structure (see screenshot-1)
2) Insert, for example, h:graphicImage component:
<h:graphicImage value="(cursor)"/>
3) Call CA in a place between double quotes
RESULT: I have access only to relative paths (/images, /pages) (see screenshot-1), but I
want to have access to absolute path (e. g. images), which can I get if I print this
folder in a value attribute:
<h:graphicImage value="images/ "/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira