I'm using primefaces 3.x
I'm migrating the Icefaces 1.8.x project to the Primefaces.
It is possible to display a generic inputstream instead of StreamedContent ? My problem is that I have a image POJO which contains InputStream as attribute, this POJOs are in the backend project and I don't want to make them dependent on primeface library only for image display. So in my case I would have two options:
1) Display input stream from the POJO or
2)create a method in the managed bean which can create an primefaces-StreamContent from the input stream and use like:
Code: Select all
<p:graphicImage value="#{managedBean.createStreamContentFromStream(myInputStream)}" />
But unfortunately both cases are not valid, first one because it is not possible to display InpuStream second one probably because it is not possible to use MethodExpression.
Probably If I would need to display a list of images, I need a wrapper over my pojo and then have a duplicated list in the managed bean with my warped pojo.
Any other solutions?
thank you,
Dima