WE do exactly the same. There is a JSF tag called ChartCreator on
sourceforge and on the JFreeChart forums. It handles this. However we
ran into its incapability to use a variable for the chartype which was
prohibiting. With hardcoding the charttype ("pie" for instance),it works
great. A new release was promised for last night (not there as I write
this), which fixes this bug and adds features.

John 

-----Original Message-----
From: Julian Ray [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 2:07 AM
To: 'MyFaces Discussion'
Subject: RE: How to displayi an images generated by a managed bean?

Hi Paul,

We use JFreeCharts by creating a servlet which serves up the charts and
then creating a URL in the backingbean which is set as the value for the
graphicImage

Eg <h:graphicImage styleClass="..." value="#{myBackingBean.chartURL}" />


-----Original Message-----
From: Paul Spencer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 11:14 PM
To: MyFaces Discussion
Subject: How to displayi an images generated by a managed bean?

I need to include a graphic image generated by JFreeCharts.  Currently
the generation of the image is in an action of a managed bean and is
displayed in a separate windows via <h:commandButton>.  How should I
convert this to a <h:graphicImage> so it can be displayed in an existing
page?

Paul Spencer


Reply via email to