channa_it

Fusioncharts With Jsf 2.0

Recommended Posts

Hi !

 

Can you please explain how to use FusionCharts with JSF 2.0,

I am using file extension as "sample.xhtml" it seems that script file called "FusionCharts.js" not compatible with that extension.

If you have some sample application that done with .xhtml can you please upload that.

 

Thanks a lot,

-channa

Share this post


Link to post
Share on other sites

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

Please refer to this forum link: http://forum.fusionc...__30#entry39191 for your reference.

 

Hope this helps.smile.gif

 

Hi Angshu !

 

Many thanks for your reply.

 

But it seems those samples done with jsf 1.2, but I want to know how to integrate fusioncharts with jsf 2.0 (with .xhtml files) :(

 

Thanks & Best Regards,

-channa

Share this post


Link to post
Share on other sites

Hi Srividya !

 

Many thanks for your reply.

 

Is there any alternative way to me do integrate fusioncharts jsf 2.0 ?

I mean I have try with jQuery (FusionChartsFree-jQuery-1.0.0b2) but those scripts are not compatibility with .xhtml extension,

currently biggest problem I have faced integrate fusioncharts with .xhtml files :( ,

if you have any idea please help me.

 

Thanks & Best Regards

-channa

Share this post


Link to post
Share on other sites

Hi Srividya !

 

Once I put that jQuery (FusionChartsFree-jQuery-1.0.0b2) inside my .xhtml page it show some syntax error (I have attached sample with this) :( , but those jQueries work fine with .html pages.

Can you please give me some feed back If you have any idea about this.

 

 

Thanks & Best Regards

-channa

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi :)

 

I am afraid, currently we don't have a sample code for FusionCharts with JSF 2.0 :(

 

You will need to create your own code implementation for the integration of FusionCharts with JSF 2.0.

 

However, .jar files from download package>>Code>>J2EE>>WEB-INF might help, for the code implementation.

 

Please refer the following link for more information.

http://docs.fusioncharts.com/charts/contents/?Code/J2EE/JSP_GettingStarted.html

 

Hope this helps. :)

Share this post


Link to post
Share on other sites

hi sumedh,

 

thanks for your reply.

so far i've tried to implement like srividya's explanation in other topic

i used Tag library Jar version: 1.4.1

but it doesn't work

 

in my (.xhtml) page

<f:verbatim>This is JSF example</f:verbatim>
<fc:renderHTML chartId="MyChart" filename="/secure/FusionCharts/Column3D.swf" width="700" height="300" xml="#{dataInvestorBean.xmlString}" debugMode="true" registerWithJS="true">
</fc:renderHTML>

 

values in the bean

xmlString ="<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>";

 

is there something wrong in my code?

and

can i use Tag library Jar version: 1.4.1 in jsf 2.0?

 

thanks

 

 

hutagaol

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi. :)

 

In the .xhtml page, there is no such attribute as xml, you can use only xmldata and xmlurl.

 

I am afraid, we don' t have sample for implementation of FusionCharts with JSF 2.0.

 

You would have to modify your own code for implementation of FusionCharts with JSF 2.0.

 

Hope you have a great day. :)

Share this post


Link to post
Share on other sites

hi :)

I got the solution

 

actually i use primefaces 3.0 tag library

and put this code in my xhtml page

 

<p:fieldset id="panel">
						<p:outputPanel rendered="#{xxBean.boolChartFlag}">
							<p:media  value="/Charts/MSLine.swf?&dataXML=#{xxBean.xmlData}"
						     player="flash" width="425" height="300">
								<f:param name="wmode" value="transparent"/>
							</p:media>
						</p:outputPanel>
					</p:fieldset>

 

thanks for fushioncharts :rolleyes:

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi, smile.gif

 

Its glad to know that, you have managed to resolve your issue.smile.gif

 

Happy FusionCharting ! biggrin.gif

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

I am afraid, there isn't any tag library for JSF2, as of now.

 

We are unable to commit on any time line.

 

Thank you for your continued support and patience.

Share this post


Link to post
Share on other sites

hi :)

I got the solution

 

actually i use primefaces 3.0 tag library

and put this code in my xhtml page

 

<p:fieldset id="panel">
						<p:outputPanel rendered="#{xxBean.boolChartFlag}">
							<p:media  value="/Charts/MSLine.swf?&dataXML=#{xxBean.xmlData}"
					         player="flash" width="425" height="300">
								<f:param name="wmode" value="transparent"/>
							</p:media>
						</p:outputPanel>
					</p:fieldset>

 

thanks for fushioncharts :rolleyes:

 

please can you give us step to use fusionchart with JSF 2.0 , i don't find any way to do it

thank you

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

I am afraid, we do not support JSF 2, as of now.

 

Hope this helps!

Share this post


Link to post
Share on other sites

Hi ,

 

 

I am working on FusionCharts :) .I have created a project on fusioncharts with .jsp but actually i need .xhtml.

For jsp the supporting file i.e FusionChartsRenderer.jsp has a scriptlet in it.I want to know whether .xhtml supports scriptlets?

And also please provide me a demo project of fusioncharts in xhtml.

 

 

 

Thanks & Regards,

Shweta K

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi Shweta,

 

In XHTML, the JSP's sciptlet(<% code %>), expression(<%= expression %>), declaration(<%! declarationCode %>) do not work.

 

You may have to use a different syntax to support the same.

 

Like for example, you may use

<jsp:declaration> String fname="amit";</jsp:declaration>

for declaration,

<td>First Name</td><td><jsp:expression> fname</jsp:expression></td> 

for expression and

<jsp:scriptlet> ...</jsp:scriptlet> 

for Scriptlets.

 

Please refer to a third party link for more information on the same,

http://www.roseindia.net/jsp/xml-xhtml-jsp.shtml

 

Also, please note that FusionCharts works with JSP, html, xhtml, etc., with out any issues. Just take care of the syntax.

 

Hope this helps!

Edited by Bindhu

Share this post


Link to post
Share on other sites

Hi,

 

 

Actually i am working on Icefaces and that <jsp:declaration> and <jsp:expression> tag is not compatable in Icefaces project.

So can you please guide me in this.

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

I am afraid, we do not have any implementation on FusionCharts with IceFaces.

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi Shweta,

 

It works the same way how it works with html. There is no change in the code.

 

You just have to take care of the syntax.

 

Provide the input in XML or JSON format and FusionCharts charting engine will render the charts without any issues.

 

Hope this helps!

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