Splash › Forums › PrettyFaces Users › graphicImage and external Urls
This topic contains 1 reply, has 2 voices, and was last updated by Lincoln Baxter III 11 years, 7 months ago.
i’m having issues using PrettyFaces with the h:graphicImage Tag. If i set the components value to an external url the link is rewritten by the encodeUrl of the PrettyFacesWrappedResponse class
public String encodeURL(final String url)
FacesContext context = FacesContext.getCurrentInstance();
PrettyContext prettyContext = PrettyContext.getCurrentInstance();
String result = rewritePrettyMappings(url, context, prettyContext);
result = rewrite(result, prettyContext);
the result is the contextPath + externalUrl e.g. “/exampleApphttp://….”
Did i miss a config parameter that forces pretty faces to ignore external resources?
Apologies for the late reply, this must have slipped my attention. No you did not. There was a bug related to this in one of the recent PrettyFaces releases.
Which version of PrettyFaces and JSF are you using?
The forum ‘PrettyFaces Users’ is closed to new topics and replies.
Comments are closed.
If you find our tools useful, please consider making a donation to help us stay online and building software!