I am trying to build a web app in which, after a user uploads a file, and selection a filter he would click on a button and a preview of that image(filtered) would be displayed on the browser. I am using primefaces and my main problem is the display of the graphic image.
I set the graphic image like this:
<h:graphicImage rendered="#{bean.sth ne null}" value="#{bean.imgPreview}">
in order not to have a null pointer exception on page first load.
My main problem is that when I upload the file, I would like to update this graphic image in order to get the new image value.
What I have tried:
- cache = false
- wrap it inside panel and update the panel and dialog
Could you please help me.