You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Volker Weber (JIRA)" <de...@myfaces.apache.org> on 2008/02/27 12:33:51 UTC
[jira] Commented: (TOBAGO-625) Misleading documentation to
reference images or style files in TLD for tc:image and tc:style
[ https://issues.apache.org/jira/browse/TOBAGO-625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572880#action_12572880 ]
Volker Weber commented on TOBAGO-625:
-------------------------------------
The Documentation says absolute url not absolute path.
But you are right the image/myimage.jpg is found even if <webappRoot> is not in tobago resourcePath, so the docu is outdated and should correted.
Maybe we also need examples there
> Misleading documentation to reference images or style files in TLD for tc:image and tc:style
> --------------------------------------------------------------------------------------------
>
> Key: TOBAGO-625
> URL: https://issues.apache.org/jira/browse/TOBAGO-625
> Project: MyFaces Tobago
> Issue Type: Task
> Components: Core
> Affects Versions: 1.0.15
> Reporter: Tobias Glensk
> Priority: Minor
>
> The documentation for the attribute value in tc:image says: "Absolute url to an image or image name to lookup in tobago resource path". As far I know an absolute paths begin with a "/" (slash), but if I am using the slash the image is not found.
> For example, I have an image in the folder <webapp-root>/image/myimage.jpg. If I am referencing the file like this <tc:image value="/image/myimage.jpg"/> the image is not found. After I changed it to <tc:image value="image/myimage.jpg"/> it works.
> The same behavior can be observed for the attribute style in <tc:style>.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.