Hi
I had coded as per the manual.
My jsp looks like:
Code: Select all
<%@taglib uri="/WEB-INF/tld/chartCreator.tld" prefix="c" %>
.....
.....
<h:panelGroup id="PGpPie" rendered="true">
<c:chartCreator id="cc1" title="Pie Chart Report" datasource="#{reportBean.source}" type="pie" background="white">
</c:chartCreator>
</h:panelGroup>
....
....
Everything else on the jsp works.
In my backing bean I have:
Code: Select all
public DefaultPieDataset getSource() {
System.out.println("INSIDE ReportBean.getSource()");
DefaultPieDataset pieSource = new DefaultPieDataset();
pieSource.setValue("A",52);
pieSource.setValue("B",30);
pieSource.setValue("C",18);
return pieSource;
}
When I run the application and load the page I do not get any image. I have both debugged the getSource() method and put in a System.out.println() to check the method is invoked. The debugger does not stop and for the sysout no output is provided.
If the report title is fixed text that is displayed. I changed this to a value binding on the title attribute but this does not invoke the method either and no text was displayed.
Looking at the source of the loaded page the image take for the chart place holder is:
<IMG SRC="/BetterCollections/servlet/ChartWriter" BORDER=1 WIDTH=400 HEIGHT=300/>
I hope this helps.
Cheers
Seamus