Talamond

Members
  • Content count

    2
  • Joined

  • Last visited

About Talamond

  • Rank
    Forum Newbie
  1. FusionCharts JSF-All Tag Libraries & Samples

    Hello. I'm concerned that my application is using the incorrect taglib jar and taglib xml. I am using java 6 and jsf 1.2, so I am using the jar from http://www.fusioncharts.com/forum/FindPost14111.aspx but it seems a little old and I'm wondering if this is the latest version? Also, I'm wondering where I can find the latest fusioncharts.taglib.xml. I version I have only refers to the tag "renderHTML" and there's no reference to "render" (which i often see referred to in examples). Is there a download page for these jars and xmls? I've looked but all I can find is a couple forum threads with download links which makes me wonder if I indeed have the latest version. Thanks Talamond
  2. Hello. I've been trying to get FusionCharts working with xhtml for a few days now, but i have not had any success. I have followed the tutorial posted on this thread, but I am getting the following error: Error: uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: "file:///home/FusionCharts/FusionCharts/FusionCharts.js Line: 250"] I've got it wokring in basic HTML, but unable to get it working in xhtml using javascript. Ideally, I'd like to get the FusionCharts taglib to work, but right now I'm just trying to get it to work in xhtml javascript. Here is my xhtml code: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en"> <head> <script type="text/javascript" src="FusionCharts/FusionCharts.js"></script> <script type="text/javascript" src="FusionCharts/FusionChartsExportComponent.js"></script> </head> <body bgcolor="#ffffff"> <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"> <![CDATA[ var myChart = new FusionCharts("FusionCharts/Column3D.swf", "myChartId", "900", "300", "0", "0"); myChart.setDataXML("<chart numberPrefix='%' exportEnabled='1' exportAtClient='1' exportHandler='fcExporter1' caption='Title' xAxisName='X Axis' yAxisName='Percentage succeeded' showValues='0' yAxisMaxValue='100' > <set label='1' value='100' color='00FF00'/> <set label='2' value='96' color='00FF00'/> <set label='3' value='70' color='FF0000'/> <set label='4' value='50' color='FF0000'/> <set label='5' value='83' color='FF0000'/> <set label='6' value='52' color='FF0000'/> <set label='7' value='69' color='FF0000'/> <set label='8' value='67' color='FF0000'/> <set label='9' value='97' color='00FF00'/> <styles> <definition> <style name='CanvasAnim' type='animation' param='_xScale' start='0' duration='1' /> </definition> <application> <apply toObject='Canvas' styles='CanvasAnim' /> </application> </styles> </chart>"); myChart.render("chartdiv"); ]]> </script> </body> </html> Here is the counter .html that works fine: <html> <head> <script type="text/javascript" src="FusionCharts/FusionCharts.js"></script> <script type="text/javascript" src="FusionCharts/FusionChartsExportComponent.js"></script> </head> <body bgcolor="#ffffff"> <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("FusionCharts/Column3D.swf", "myChartId", "900", "300", "0", "0"); myChart.setDataXML("<chart numberPrefix='%' exportEnabled='1' exportAtClient='1' exportHandler='fcExporter1' caption='Title' xAxisName='X Axis' yAxisName='Percentage succeeded' showValues='0' yAxisMaxValue='100' > <set label='1' value='100' color='00FF00'/> <set label='2' value='96' color='00FF00'/> <set label='3' value='70' color='FF0000'/> <set label='4' value='50' color='FF0000'/> <set label='5' value='83' color='FF0000'/> <set label='6' value='52' color='FF0000'/> <set label='7' value='69' color='FF0000'/> <set label='8' value='67' color='FF0000'/> <set label='9' value='97' color='00FF00'/> <styles> <definition> <style name='CanvasAnim' type='animation' param='_xScale' start='0' duration='1' /> </definition> <application> <apply toObject='Canvas' styles='CanvasAnim' /> </application> </styles> </chart>"); myChart.render("chartdiv"); </script> </body> </html> Any ideas on the problem? Thanks Talamond