incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Koci (JIRA)" <>
Subject [jira] Created: (ADFFACES-152) HtmlCommandButtonRenderer does not encode image url
Date Fri, 25 Aug 2006 13:18:22 GMT
HtmlCommandButtonRenderer does not encode image url

                 Key: ADFFACES-152
             Project: MyFaces ADF-Faces
          Issue Type: Bug
         Environment: MyFaces 1.1.4-snapshot from
            Reporter: Martin Koci
            Priority: Critical

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:
For more information on JIRA, see:


View raw message