Need to set a request heder to show image
Posted: 20 Oct 2016, 06:55
The server that has the images is requiring an XApiKey header.
I tryed this code below but it don't work.
/ Peter
I tryed this code below but it don't work.
Code: Select all
<p:graphicImage name="#{editMovieItemController.selectedHeroImage}">
<f:event type="preRenderComponent" listener="#{facesContext.externalContext.response.setHeader('XApiKey', 'D23978B0-6162-4')}" />
</p:graphicImage>