Revision history [back]

click to hide/show revision 1
initial version

answered 2010-10-21 21:48:05 +0800

cyhsiao gravatar image cyhsiao

Hi,

I try to replace chart.setDataURL("") with chart.setDataXML("<chart><set label="A" value="10"/><set label="B" value="11"/></chart>") but got some error. How to use chart.setDataXML('') function in ZK??

My code: <zk xmlns:h="&lt;a href=" http:="" www.w3.org="" 1999="" xhtml"="">http://www.w3.org/1999/xhtml" xmlns:w="http://www.zkoss.org/2005/zk/client"> <window title="new page title" border="normal"> <h:div id="chartdiv"> <attribute w:name="onBind"> var chart1 = new FusionCharts("./Column3D.swf", "ChartId", "400", "300", "0", "1"); chart1.setDataXML("<chart><set name="A" value="10" color="D64646"/><set name="B" value="11" color="AFD8F8"/></chart>");
chart1.render("chartdiv"); </attribute> </h:div> </window> </zk>

error: org.zkoss.zk.ui.UiException: Event listeners not support native content org.zkoss.zk.ui.metainfo.Parser.parseAttribute(Parser.java:977) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:712) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:600) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:870) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:600) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:870) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:600) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:870) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:209) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:100) org.zkoss.zk.ui.metainfo.PageDefinitions$MyLoader.parse(PageDefinitions.java:216) org.zkoss.web.util.resource.ResourceLoader.load(ResourceLoader.java:92) org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:226) org.zkoss.util.resource.ResourceCache$Info.<init>(ResourceCache.java:200) org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:133) org.zkoss.web.util.resource.ResourceCaches.get(ResourceCaches.java:130) org.zkoss.zk.ui.metainfo.PageDefinitions.getPageDefinition(PageDefinitions.java:144) org.zkoss.zk.ui.impl.AbstractUiFactory.getPageDefinition(AbstractUiFactory.java:113) org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:236) org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:164) javax.servlet.http.HttpServlet.service(Unknown Source) javax.servlet.http.HttpServlet.service(Unknown Source)

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More