Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsf and image  RSS feed

 
dominique boeckli
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
following problem:

My Bean builds up a image and save it in a property ->


the image is build in the action method:


.
.
.
now i try to include the image in the webpage. something like following:
<h:graphicImage ....image property of the bean.....>

many thanks for your help
 
Darrin Smith
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what your question is but I do something similar in that I get images from a servlet and display them in a JSF app.

I normally use buttons to hold the images and just use the HtmlCommandButton.setImage method to give it the URL.

If it is in a resource, then you can use the HtmlCommandButton.setValue to do it too.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!