This content has been marked as final.
Show 2 replies
-
1. Re: Rendering an image from a byte array in JSF
romeo_zdrite Dec 5, 2010 8:56 AM (in response to romeo_zdrite)I found a partial solution.
I created a servlet which takes as parameter the location of the image I want to display and I call the servlet address from a h:graphicImage tag. The only problem is that the location is hardcoded atm, and I need it to be taken out from a "var" field of a rich:datatable. if anyone has a quick method to form a servlet path in a "value" field of a h:graphicImage from a field stored in a "var" item of a dataTable, please help.
Thanks
-
2. Re: Rendering an image from a byte array in JSF
romeo_zdrite Dec 5, 2010 9:28 AM (in response to romeo_zdrite)I found the final solution as well. I've written the h:graphicImage tag smth like
<h:graphiImage value="/myServlet?location=+#{bean.location}" />
The + sign concatenates my strings.