[jboss-user] [JBoss Seam] - Re: A customer JSF tag to display Graphics2D in Seam PDF out
damianharvey
do-not-reply at jboss.com
Wed Dec 19 05:21:42 EST 2007
Pretty cool.
However, you can currently include jFreecharts into your pdf using the existing <p:image> tag eg:
| <p:image width="300" height="200" value="#{myBean.myChartImage}" />
Where you encode your chart as an image and store as a byte array:
| private byte[] myChartImage;
|
| myChartImage = ChartUtilities.encodeAsPNG(myChart.createBufferedImage(300, 200));
|
Cheers,
Damian.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114140#4114140
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114140
More information about the jboss-user
mailing list