I am attempting to dynamically generate charts using the JFreeChart library and display them to a user on the front-end. My project is using JSF 1.2 as its view technology and we are trying to determine a strategy to display a BufferedImage
.
Thus far, the best option seems to be to generate the graph using a servlet and use h:graphicImage
to point to that location. The primary question is, how can I pass an object from JSF to the servlet so that the graph generation is dynamic based on the values in the object?