Originally posted by donp
Announcement
Collapse
No announcement yet.
X
-
Originally posted by MetallicI develop an application using Smartgwt. Just one thing that is missing in it - chart. I decided to write my own implementation of Open Flash Chart(http://ofc2dz.com/) for smartgwt using flashlet and then put it somewhere(e.g. googlecode). But first of all I want to ask: Is there any ready implementations? Why is Smartgwt have no its own implementation of any chart?(licence, any other points of view)
Flashlet flashlet = new Flashlet();
String swfId = "SWFID_"+ count;
flashlet.setID(swfId+"_");
++count;
flashlet.setSrc(GWT.getModuleBaseURL()+ "flash/TCAMMap.swf");
String width = "100%";
String height = "100%";
flashlet.setSize(width, height);
java.util.HashMap<String, String> hashMap = new java.util.HashMap<String, String>();
hashMap.put("id", swfId);
hashMap.put("FlashVars", "id=" + swfId);
flashlet.setParams(hashMap);
HLayout horizonalStack = new HLayout();
horizonalStack.addMember(flashlet);
On executing the last line I get the following error.
Uncaught exception escaped : com.google.gwt.core.client.JavaScriptException
(TypeError): '$wnd.isc[...]' is null or not an object
number: -2146823281
description: '$wnd.isc[...]' is null or not an object
See the Development console log for details.
Register a GWT .setUncaughtExceotionHandler(..) for custom uncaught exception handling
Any suggestions? Can you post a working example? It seem like quite a few people are having trouble with the Flashlet.
Comment
Comment