I tried integrated fusion chart into my existing jboss seam (using richface 3.3) project, but I getting nothing rendered with fc:renderHTML tag, here is the steps:
- define xmlns: xmlns:fc="http://www.fusioncharts.com/jsp/core"
- define tags lib: xmlns:tags="/WEB-INF/tags"
- copy templates into /WEB-INF/tags folder
- Code:
[color=#4239F5][font=Monaco][size=2] <f:view>[/size][/font][/color] <a4j:outputPanel ajaxRendered="true" style="vertical-align:middle;">
<tags:template2>
<fc:renderHTML chartId="SimpleChart" height="200" width="400" swfFilename="../fusion_components/widgets/AngularGauge.swf" debugMode="true" xmlData="#{ChartControl.xml}"></fc:renderHTML>
</tags:template2>
</a4j:outputPanel>
[color=#4239F5][font=Monaco][size=2] </f:view>[/size][/font][/color]
I have build ChartControl java bean and getXml() can return data.
The above code return null, but following code works:
[color=#4239F5][font=Monaco][size=2]<script language="JavaScript" src="../js/charts/FusionCharts.js"></script>[/size][/font][/color] <div id="chartdiv" align="center">The chart will appear within
this DIV. This text will be replaced by the chart.</div>
<script type="text/javascript">
var myChart = new FusionCharts(#{ChartControl.xml});
myChart.render('chartdiv');
[color=#4239F5][font=Monaco][size=2] </script>[/size][/font][/color]
Any idea how I can solve this problem, I know this is definitely the setting issue.
Thanks for help.