Page 1 of 1

Need to set a request heder to show image

Posted: 20 Oct 2016, 06:55
by peter.ivarsson
The server that has the images is requiring an XApiKey header.

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>
/ Peter