Sign in to follow this  
srividya_sharma

fc tag library unable to use in-line xml (dataXML)

Recommended Posts

Hello,

 

I'm trying to use the fc library in a project with icefaces (got the library from this thread) and the FusionCharts Free.

 

 

 

I've managed to display a graph using the "dataURL" method (as translated into javascript), however couldn't manage to use the "dataXML" method (would be ideal, as I could the one of my seam's components to provide me the xml).

 

 

 

Please find attached the source code for the htmlx file with the 2 graphs (one for each method), but onyl the second one displays, the first one says: "Error loading data"

 

 

 

I also saw that in the library that there is an attribute called "xml" in the fc:render tag, is that the one that should be used? could you provide an example?

 

 

 

Thanks in advance for your reply,

 

Javi

home.txt

Share this post


Link to post
Share on other sites

Hi

I hope you are using the latest version of jar, 1.4.1 from this post http://www.fusioncharts.com/forum/FindPost17718.aspx

The attribute "xml" is present so that you can use it when you want to provide data from a Backing Bean.

For inline xml, you have to provide it as the body for the tag, just as you have done.

I suspect it is the jar version problem. Please verify that and get back to me, in case of any issues.

Srividya :)

Share this post


Link to post
Share on other sites

Hi Srividya,

 

Thanks for the reply. I'm using the library 1.4.1 (fusionchartstaglibJSF1-2-java5-Version1_4_1.jar). The problem was solved after I changed two things:

 

1) I use now fc:render instead of fc:renderHTML (don't know what the difference is, but got the original idea from the sample application you posted)

 

2) Now I'm passing the xml back from my backing bean without problems and yesterday I was directly writing it on the xhtml page, the difference is that the xml from my backing bean comes correctly escaped (no "<" or ">" in the xml string, but "<" and ">" instead), by the way, I even tried using "!

 

 

 

Apart from that, the library works for our purposes, not it's time to lear how to take advange of all the available charts :)

 

Thanks,

 

 

 

Javi

Share this post


Link to post
Share on other sites

Hi Javi,

Good to hear that your problem is resolved.

I will take a look at fc:renderHTML and see if there any issues with it. Thanks for the information.

There are loads of charts to explore. Hope you enjoy your journey through them!

Keep FusionCharting! :)

Srividya

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
Sign in to follow this