graphicImage and external Urls

Splash Forums PrettyFaces Users graphicImage and external Urls

This topic contains 1 reply, has 2 voices, and was last updated by  Lincoln Baxter III 6 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17743

    Carsten
    Participant

    Hi,

    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

    @Override

    public String encodeURL(final String url)

    {

    FacesContext context = FacesContext.getCurrentInstance();

    PrettyContext prettyContext = PrettyContext.getCurrentInstance();

    String result = rewritePrettyMappings(url, context, prettyContext);

    result = rewrite(result, prettyContext);

    return super.encodeURL(result);

    }

    the result is the contextPath + externalUrl e.g. “/exampleApphttp://….”

    Did i miss a config parameter that forces pretty faces to ignore external resources?

    #19956

    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?

    Thanks,

    Lincoln

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Comments are closed.