karani

Members
  • Content count

    19
  • Joined

  • Last visited

Everything posted by karani

  1. Fusion Charts intergration with JSF

    Hi Srividya, I am talking about the fileName attribute of fc:render tag, which contains the name of swf file. I use a bean method to get the fileName and in the bean, this fileName is set while getXml method is executed. Basically, swf file name is not hardcoded, which swf file name should be passed is decided by getXml method. There are certain class level variables whcih are populated in bean methods. so, in getXml method, before returning xmlString, setChartFileName() is executed in the bean. And that will set Chart File Name as some swf file name. Then I have fileName attribute, filename="#{backingBean.chartFileName}". And in backingBean I have getChartFileName() method which returns fileName by prefixing with - (FacesContext.getCurrentInstance().getExternalContext()).getRequestContextPath() And because of this kind of dynamic setting of attributes, I wanted to make sure that attributes get parsed in the order that they are written. Thanks for all your help. Let me know if this topic needs to be moved to some other topic.
  2. Fusion Charts intergration with JSF

    Hi Srividya, I have a filename value which gets set when xml attribute it parsed...during in getXml method. If you are saying that each attribut eis independent of other, then in my situation xml should get parsed first because I am putting that attribute before filename in my fc:render tag. Does it make sense? Thanks for your help.
  3. Fusion Charts intergration with JSF

    Hi Srividya, I have been using your taglib.jar for Fusion Chart integration with JSF. HOw will I get notified if at all you release newer version of the same jar file? Please advise. Also, I am using backing bean method, so using fc.render tag in my page. Does the attribute filename get excuted/parsed before xml attribute? It is allowing me to write in whcihever order I want, but I noticed that filename is parsed before xml. Is there anyway to change the rule or its fixed? Please advise. Thanks.
  4. Fusion Charts intergration with JSF

    Thanks Srividya. I took your latest taglib.jar and tested my code and it worked fine. Thanks so much for your help. I was using static XML all this while, now I will code to get data from database and test it out. thanks once again.
  5. Fusion Charts intergration with JSF

    hey Srividya, I have emailed you that I tried to add those lines and it has not worked. It is not giving any error as well. Is there any other way to debug this? Thanks.
  6. Fusion Charts intergration with JSF

    I think, its taking a while to update the changes. I am yet not able to view Messages.
  7. Fusion Charts intergration with JSF

    Also, my jsp with Fusionchart is included in index.jsp, do you think that could cause an issue?
  8. Fusion Charts intergration with JSF

    yes, I did that. <head> <% response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader ("Expires", 0); %> </head> but it didn't help me.
  9. Fusion Charts intergration with JSF

    Hey Srividya, I tried to put it between head tags but didnt help Thanks.
  10. Fusion Charts intergration with JSF

    No, there are no cache headers, but when I hit F5, the URL for the page gets submitted again and with that, app Id1 page gets displayed and then when I click on the home page tab, it brings the chart on home page.
  11. Fusion Charts intergration with JSF

    Just wanted to update you that, I kept debugMode="true" but when I click back on that tab, ofcourse that window doesn't appear anymore.
  12. Fusion Charts intergration with JSF

    Sure. Do let me know if you want me to give you any clarification or if you have specific question. Are you online? Do you have chat option on this forum?
  13. Fusion Charts intergration with JSF

    There is no message on the chart. but logic of index.jsp is - <rich:tab label="Home" name="Home"> <jsp:include page="/jsp/home.jsp"/> </rich:tab> <rich:tab label="Id1 Tab" name="Id1Tab" > <IFRAME ID="Id1" NAME="Id1" SRC="<%= mgr.getId1URL() %>" width="1100" height="650"> </IFRAME> </rich:tab> This index.jsp also has a javascript function that is required by fusion chart - <SCRIPT LANGUAGE="JavaScript"> function myJS(myVar){ alert(myVar); <% document.getElementById('IndexForm:DataInput').value = myVar.toLowerCase(); document.getElementById('IndexForm:Id1Link').onclick(); } </script> And AJAX functionality is used to set the value for IndexForm:DataInput. home.jsp has Fusionchart implementation for JSF - <fc:render chartId="chart1Id" filename="../FusionCharts/Column3D.swf" width="700" height="300" xml="#{Backingbean.xml}" registerWithJS="1"></fc:render> Backingbean.xml has entire chart tag along with all the set tag with - xml+="<set name='Jan' value='462' color='AFD8F8' link='j-myJS-India' />"; So, with myJS functionality, I am able to navigate to the page on app Id1...but when I click back on the tab of home.jsp fusioncharts disappear. Hope this can help you give an idea of my code. Thanks a ton.
  14. Fusion Charts intergration with JSF

    so I have 2 IFRAMEs present in a richfaces 'tab'. one IFRAME has a page which displays fusionchart and 2nd IFRAMEd tab displays some other application. now when I click on fusionchart, I would like to go to a page of my 2nd tab application. Since IFRAME applications are independant, when you click on the tabs...it brings you the last visited page of your application. so having said that, when I click on the first tab again, it should show me fusioncharts again. but that doesn't happen. It takes me to the first page but fusionchart doesn't appear. when I hit REFRESH, it brings Fusionchart back. Can you help me? there seems to be some issue with session I am assuming. This entire use case was working correctly, before we implemented fusionchart. we were using Jfreechart, we are in a process of implementing fC in place of Jfreechart. Hope this helps.
  15. Fusion Charts intergration with JSF

    Hi Srividya, I again resolved the issue for using chart option. so now my chart appears fine. I have this chart appearing in an IFRAME. I need to make this chart clickable. When you click on bar of this column3D chart, user should get navigated to another application placed on another IFRAME on the same page. Now, I am able to do it using link option and providing appropriate URL. and it opens the correct page in the 2nd application. but the issue is, since its an IFRAME, I should be able to navigate to my original app with the chart. all IFRAMEs are in 'tab'. but when I click on the first tab, it doesn't display that chart to me. when I hit REFRESH on this page (F5), it brings the chart back. I am getting data from backing bean. Hope you understand the issue, please let me know if you need any more clarification. Thanks. Note: myJS function uses ajax functionality to go to other app page. but when I try to come back to the original tab, i get the page without the chart.
  16. Fusion Charts intergration with JSF

    Hey Srividya, I think, I resolved the issue. Issue was that I was using your taglib.jar and the js provided in the zip posted in your older replies. And I figured from other topic replies, that Fusionchart free version uses graph and purchased version uses chart tag. And while troubleshooting, I had converted graph tag to chart tag. Anyway, it is resolved. I wanted to find if I were to use purchased version (which we have already bought) where will I get jsf taglib.jar? Thanks.
  17. Fusion Charts intergration with JSF

    Hi srividya, Thanks for your quick response but I have verified javascript location and I am passing xml as an attribute and data comes from my backing bean. When I do source view on my page, this is what I get...which looks fine to me. <!-- START Script Block for Chart chart1Id--> <div id="chart1IdDiv" align="center"> Chart. </div> <script type="text/javascript"> var chart_chart1Id = new FusionCharts('../FusionCharts/FCF_Column3D.swf', 'chart1Id', '700', '300', '0', '0'); chart_chart1Id.setDataXML("<chart caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' decimalPrecision='0' formatNumberScale='0'><set name='Jan' value='462' color='AFD8F8' /><set name='Feb' value='857' color='F6BD0F' /><set name='Mar' value='671' color='8BBA00' /><set name='Apr' value='494' color='FF8E46' /><set name='May' value='761' color='008E8E' /><set name='Jun' value='960' color='D64646' /><set name='Jul' value='629' color='8E468E' /><set name='Aug' value='622' color='588526' /><set name='Sep' value='376' color='B3AA00' /><set name='Oct' value='494' color='008ED6' /><set name='Nov' value='761' color='9D080D' /><set name='Dec' value='960' color='A186BE' /></chart>"); chart_chart1Id.render('chart1IdDiv'); </script> <!--END Script Block for Chart chart1Id--> Can you tell me, what could be wrong here? and where is 'No data display' message coming from? If you can tell me that then I may be able to troubleshoot more. Also, will it make any difference if I have debugMode='true'? and how should I debug this then? I hope you can help me with this. I do have other jsf/html tags on my page, will it create any issue? Thanks. Do you support during US daytime?
  18. Fusion Charts intergration with JSF

    Okay, now I downloaded the latest fusionchartstaglib-JSF1.2 and it doesn't show me extra piece of code, but instead of displaying the chart it displays 'No data to display'. And I don't know where this message is coming from. Can you please help me debug this? It seems simple, but getting difficult to implement.
  19. Fusion Charts intergration with JSF

    I tried to modify my current application jsf to use fc:render tag for fusionchart implementation, but it gives me javascript error and doesn't display the chart. It just displays the word 'chart'. I am providing entire xml from my backing bean in the body between the opening and closing fc:render tags. Javascript error gives an issue for # sign where backing bean.xml is mentioned. Can you tell me where I could be going wrong? Thanks in advance.