Need to set a request heder to show image

jQuery UI Widgets
Post Reply
peter.ivarsson
Posts: 1
Joined: 19 Oct 2016, 08:30

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.

Code: Select all

      <p:graphicImage name="#{editMovieItemController.selectedHeroImage}">
              <f:event type="preRenderComponent" listener="#{facesContext.externalContext.response.setHeader('XApiKey', 'D23978B0-6162-4')}" />
     </p:graphicImage>
/ Peter

Post Reply

Return to “PrimeUI”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests