I'm unable to display image of external host on JSF page. In my case it is Apache file server. I'm creating image URL in @RequestScoped
bean and then trying to pass it as String in @ViewScoped
bean to frontend.
I've tried to display image in two ways: First by loading it with JSF:
<h:graphicImage name="#{myViewScopedBean.myObject.mainImageUrl}" />
And then with html <img>
tag as referenced in this answer.
Afterwards I've tried to print all attributes of myObject
.
All String attributes are displayed well, except mainImageUrl
. and I'm 100% sure that I'm setting mainImageUrl
on backend.
What can provoke this problem? Is there any security JSF configuration?