You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Martin Koci (JIRA)" <ad...@incubator.apache.org> on 2006/08/25 13:20:22 UTC
[jira] Updated: (ADFFACES-152) HtmlCommandButtonRenderer does not
encode image url
[ http://issues.apache.org/jira/browse/ADFFACES-152?page=all ]
Martin Koci updated ADFFACES-152:
---------------------------------
Status: Patch Available (was: Open)
> HtmlCommandButtonRenderer does not encode image url
> ---------------------------------------------------
>
> Key: ADFFACES-152
> URL: http://issues.apache.org/jira/browse/ADFFACES-152
> Project: MyFaces ADF-Faces
> Issue Type: Bug
> Environment: MyFaces 1.1.4-snapshot from http://people.apache.org/builds/myfaces/core-1.1.x/
> Reporter: Martin Koci
> Priority: Critical
> Attachments: HtmlCommandButtonRenderer.java.patch
>
>
> HtmlCommandButtonRenderer is rendering image attribute without using encodeUrl on ExternalContext. I leads to disappearance of all button images, because we use <h:commandButton image="/imageServlet/imageName.gif" /> everywhere.
> Proper encoding of URL can be:
> String src = context.getApplication().getViewHandler().getResourceURL(context, imageSrc);
> writer.writeURIAttribute("src", context.getExternalContext().encodeResourceURL(src), "image");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira