srividya_sharma

FusionCharts JSF-All Tag Libraries & Samples

Recommended Posts

Hi,

I am new to Fusion charts.We are trying to use Fusion charts in JSF 1.2.Earlier we were using JFree charts. I have downloaded FusionChartsFree_JSF.war file and fusionchartstaglibJSF1-2.jar from this site and deployed the WAR. I am able to see all the charts except "Simple Chart with data from Backing Bean " .Whenever i click on this link,the page gets loaded and in place of Chart i get "No Data to display".

I am using JSF1.2,JDK 6 and Apache Tomcat 6.

Thanks,

Binamra

Share this post


Link to post
Share on other sites

It works for me in the same environment. Please turn the debugMode "on" and tell us what the message there is. This can be done in BackingBeanChart.jsp by providing another attribute to the chart debugMode="true".

I request you to please start a new Topic for your queries. I want to leave this topic only for posting new samples/jars.

Thanks.

Share this post


Link to post
Share on other sites

Hello everybody,

Here I am again, with the latest JSF tag library jar.

This time I have added the windowMode, color and other useful attributes.

ArrayIndexOutOfBoundsError in saveState has been fixed.

Minor error in wMode has also been fixed.

Please see the tld or the Version History.txt for all the attributes added in this version 1.4 of the tag library.

Java: 5

JSF: 1.2

Tag library Jar version: 1.4.1

Srividya :)

Keep asking and keep getting more out of FusionCharts!

fusionchartstaglibJSF1-2-java5-Version1_4_1.zip

Edited by Guest

Share this post


Link to post
Share on other sites

Hello everybody,

Attached is the Sample Application with the latest FusionCharts JSF jar. ( v1.4 )

Please see the tld or the Version History.txt for all the attributes added in this version 1.4 of the tag library.

Java: 5

JSF: 1.2

Tag library Jar version: 1.4

To try this application, please

  • Place the FusionCharts.js and swf files in the FusionCharts folder.
  • Place the JSF 1.2 related library files in WEB-INF/lib folder.
  • For viewing Tabbed example, you would need rich faces.

Srividya :)

FusionChartsProJSF1_2v1_4SampleApp.zip

Share this post


Link to post
Share on other sites

hi,

 

i am new to Seam framework. can anybody help in embending fusioncharts in seam.

 

 

 

if i can get sample application it will be great.

 

 

 

 

 

Devika

Share this post


Link to post
Share on other sites

Hi,

I had a question around the BackingBean Example, does it specify the filename of the xml file in this line:

filename="#{exampleChartData.filename}"

Does this imply we need to have this file and we cannot stream raw XML into this template?

Apologies if i sound a bit confusing I cannot access all the classes to look more into it.

 

Thanks

Share this post


Link to post
Share on other sites

Hello Liyaqat,

Thanks for trying out this tag library. I hope you like it.

filename attribute is for specifying the name and path of the .swf file.

Here are some sample usages:

Using dataURL method:

<fc:renderHTML chartId="BasicChart" filename="FusionCharts/Column3D.swf" width="700" height="300" url="Data/Data.xml" debugMode="false"/>

Using inline xml or dataXML method:

<fc:renderHTML chartId="BasicChart" filename="FusionCharts/Column3D.swf" width="700" height="300">
<chart caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' decimals='0' formatNumberScale='0'>
<set label='Jan' value='462' color='AFD8F8' />
<set label='Feb' value='857' color='F6BD0F' />
<set label='Mar' value='671' color='8BBA00' />
</chart>
</fc:renderHTML> 

With Backing Bean:

<fc:render chartId="#{exampleChartData.chartId}" filename="#{exampleChartData.filename}" width="#{exampleChartData.width}" height="#{exampleChartData.height}" xml="#{exampleChartData.xml}"></fc:render>

sample values in the backing bean:

 String xml="<chart></chart>"; // will have the chart specifi xml
 String chartId="Chart1";
 String url="Data/Data.xml";
 String width="700";
 String height="300";
 String filename = "../FusionCharts/Column3D.swf";

You can use fc:render or fc:renderHTML. fc:render requires that you import the FusionCharts.js in your page ( <javascript src=... >  ) whereas fc:renderHTML uses the object embed tag.

Hope this clarifies your question.

Srividya :)

Share this post


Link to post
Share on other sites

Hi there,

 

 

 

are there any taglibs for Java5, JSF1.2, that support expressions? eg #{} or ${} ??? Cause I keep getting: 'According to TLD or attribute directive in tag file, attribute chartId does not accept any expressions' when I use the taglib 1.4

Edited by Guest

Share this post


Link to post
Share on other sites

Hi all

The Tag library Jar version 1.4.1 is very useful. Thanks a lot

But I have a problem of setting the wMode of the flash.

I have set the wMode of flash by using the following code in jsf

<fc:renderHTML windowMode="opaque"

but it doesn't work.

Does anyone know how to set the wMode??

Share this post


Link to post
Share on other sites

Thanks for your help

<fc:renderHTML chartId="BasicChart" width="700" height="400" filename="FusionCharts/#{listItem.rptFileName}.swf" xml="#{listItem.XML}" windowMode="opaque" />

Share this post


Link to post
Share on other sites

The reason I need to set the wmod of flash to "opaque" is I have added a datepicker on the top of the flash, but the <div> layer has been covered by the flash. And the solution is set the wMode to "opaque"

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now