Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Daisy Brown   on Apr 15 In Java Category.

  
Question Answered By: Laurel Collins   on Apr 15

jsf:graphicImage takes a url to the image,
to render image  object you should:
1) make sure the image object (your entity  or at least its image field) is available after request,
for example if your managed bean scope is request the object will be wiped out
2) create a mechanism to convert object refrence to a url and back
3) give the image refrence as url to jsf:graphicImage

if you want a simpler approach use seam image tag!
this way you will just give the image field  name to the seam jsf  image tag, and it works!

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on rendering java.awt.image using JSF Or get search suggestion and latest updates.


Tagged: