views:

332

answers:

2

I need a jsf component for representing Gantt chart. Does any components library (like RichFaces) contains this component?

+1  A: 

JFreeChart does it.

See here for example.

Padmarag
+1  A: 

JFreeChart has a Gantt chart and PrimeFaces has an image component which allows you to dynamically stream content in. Here is an example in combination with JFreeChart.

Alternatively you can also just grab h:graphicImage and let it point to a simple servlet which streams the JFreeChart result to the response based on the request parameters or pathinfo.

BalusC
Actually it's not a problem to show the image. But I don't get it how to get the image from JFreeChart.
Roman
Oh, I've googled something related, maybe this is what I want.
Roman
Make it to return the image in flavor of an `InputStream` somehow ;) Google "JFreeChart Developer Guide" for the devguide PDF (which actually isn't freeware).
BalusC
Yeah, it costs 40$. But I think I've found well enough tutorial to sort it out by myself.
Roman