how to create dynamic grahpics with JFreeChart and myfaces?

2007-06-06 Thread Jochen Zink
Hello, I want to show a BufferedImage on a JSF-generated page. In my case, this Image is generated by the JFreeChart[1] library. Now my question: What must I do, that I can show this image as a graphic on a JSF Page? I try to use normal h:graphicImage tag with a url attribute which points to

Re: how to create dynamic grahpics with JFreeChart and myfaces?

2007-06-06 Thread Mario Ivankovits
Hi! I want to show a BufferedImage on a JSF-generated page. In my case, this Image is generated by the JFreeChart[1] library. Now my question: What must I do, that I can show this image as a graphic on a JSF Page? Hehe - I had the same problem yesterday. One solution is the latest

Re: how to create dynamic grahpics with JFreeChart and myfaces?

2007-06-06 Thread Glauco Pimentel Gomes
See JSF Chart Creator [1], it uses JFreeChart 1.0.5. [1] http://jsf-comp.sourceforge.net/components/chartcreator/index.html http://www.jfree.org/jfreechart Glauco P. Gomes Mario Ivankovits escreveu: Hi! I want to show a BufferedImage on a JSF-generated page. In my case, this Image is

Re: how to create dynamic grahpics with JFreeChart and myfaces?

2007-06-06 Thread Jochen Zink
Thanks for the fast reply. It is not possible to use tomahawk or the chartcreator comp in my environment. So, I hope there is a solution without using special components. I will take a look to the source code of chartcreator and try to find a solution. If anyone know how it works, please let

Re: how to create dynamic grahpics with JFreeChart and myfaces?

2007-06-06 Thread Cagatay Civici
Hi, Chartcreator uses either a phaselistener or a servlet to generate the charts. It can be configured by a context param. First it gets the datasource and chart parameters, puts them to session and renders an img tag like; img src=pagename.jsf?chartId=myChart / and then in this case faces

Re: how to create dynamic grahpics with JFreeChart and myfaces?

2007-06-06 Thread Petr Kotek
Hi, I have a working solution by img on the page and servlet: In JSF page I have: h:graphicImage value=/svlgraph?#{GraphShowRequest.graphParam} width=#{GraphSession.graphWidthString} height=#{GraphSession.graphHeightString}/ In GraphShowRequest bean add some parameters for graph servlet and