Guys When I using view as scope.I can’t preview the <p:graphicImage>.But if i use session as scope i can view the <p:graphicImage>. why ???
Guys When I using view as scope.I can’t preview the <p:graphicImage> .But if i
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The browser fetches images in another connection so the view scoped bean will be instantiated multiple times. The urls of the images will also be different and thus the images will not be shown in the browser.
The
p:graphicImagewill work with any other scope IIRC. There are numerous other questions asked about this subject, like this one: How to use p:graphicImage with StreamedContent within p:dataTable?