spikytiger2001

Members
  • Content count

    7
  • Joined

  • Last visited

About spikytiger2001

  • Rank
    Forum Newbie
  1. Short Tutorial on FC JSF Tag Library with Facelets and XHTML

    Ok, found out the problem, the framework is using JSF1.1 not 1.2, was a bit of a misunderstanding on our side, thanks anyways.
  2. Short Tutorial on FC JSF Tag Library with Facelets and XHTML

    chart.xhtml: <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:fc="http://www.fusioncharts.com"> <script type="text/javascript" src="js/FusionCharts.js"></script> <fc:render chartId="thisnowhasanid" filename="fusioncharts/HLinearGauge.swf" width="800" height="200" debugMode="true" registerWithJS="0" WMode="0" color="CCCCCC" scaleMode="0" lang="en" detectFlashVersion="0" autoInstallRedirect="" xml="data" url="#{linearGaugeChartManagedBean.xml}"> </fc:render> </ui:composition> LinearGaugeChartManagedBean.java : public class LinearGaugeChartManagedBean { private String fileName = "aacc/fusioncharts/HLinearGauge.swf"; private String xml = "<chart lowerLimit='0' upperLimit='100' palette='1' decimals='0' gaugeRoundRadius='5' baseFontColor='000000' showToolTip='1' chartLeftMargin='100' chartRightMargin='100'><colorRange><color id='colid1' minValue='0' maxValue='10' code='DD0000' label='Not Started (10)'/></colorRange></chart>"; public String getXml() { return xml; } public void setXml(String xml) { this.xml = xml; } public String getFileName() { return fileName; } public void setFileName(String fileName) { this.fileName = fileName; } } in another page I call: <ice:panelGroup style="position: relative; top: 10px; float: left; width: 70%"> <ui:include src="templates/chart.xhtml"/> </ice:panelGroup> unfortunately due to confidentiality reasons I can't give more code than this. For some unknown reason it forces all the attributes within the tag to be there, if some are left out it doesn't work.
  3. Short Tutorial on FC JSF Tag Library with Facelets and XHTML

    Hi I am having a bit of a problem and I'm wondering if you can help me out... I'm using your guys tag library that supports JSF1.2 and Java5, and when I use the fc:render tags and put escaped xml into them it works fine, the chart displays correctly. However when I try to get the xml from my backing bean, it tells me: java.lang.NoSuchMethodError: com.fusioncharts.jsf.UIChart.getValueExpression(Ljava/lang/String; )Ljavax/el/ValueExpression; at com.fusioncharts.jsf.UIChart.getXml(UIChart.java:203) Now when I use the render tags within an .xhtml page: <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:fc="http://www.fusioncharts.com"> <script type="text/javascript" src="js/FusionCharts.js"></script> <fc:render chartId="thisnowhasanid" filename="aacc/fusioncharts/HLinearGauge.swf" width="800" height="200" debugMode="true" registerWithJS="0" WMode="0" color="CCCCCC" scaleMode="0" lang="en" detectFlashVersion="0" autoInstallRedirect="" xml="#{linearGaugeChartManagedBean.xml}" url=""> </fc:render> <ice:outputText value="#{linearGaugeChartManagedBean.xml}"/> </ui:composition> I followed the information provided earlier in the forum in setting up, and the fact that the chart is at least displaying when I entered dummy escaped xml indicates that it is setup and working mostly. When I just use the ice outputText tag the expression outputs fine, however when I put it as the xml attribute thats when I get the error... Any thoughts?
  4. FusionCharts JSF-All Tag Libraries & Samples

    yes thanks, I didnt notice the addition of the xml attribute in the tag:P was putting my chart xml between the fusionchart tags.
  5. FusionCharts JSF-All Tag Libraries & Samples

    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