Hi, everyone.
I'm trying to use JFreeChart's DisplayChart servlet to serve me back
an image. Right now, I'm not getting anything and no errors are being
thrown, and I'm wondering if anyone can help me with that.
This is my ChartImage class:
public class ChartImage extends Image {
[...]
callback = new AsyncCallback() {
/*
* If the call was successful, we will get back the
name of the chart
* that was created and stored on the server.
*/
public void onSuccess(Object s) {
String chartName = (String)s;
String imageUrl = "./displayJFreeChart?filename=" +
chartName;
setUrl(imageUrl);
new ErrorPopup("success: url = " + imageUrl).center();
}
ErrorPopup is just a trivial utility class that pops up a dialog box
for me.
Here is my .gwt.xml:
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='reporting_gwt'>
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<entry-point class='org.me.blahblahblah.gwt.client.Reporting_GWT'/>
<source path='client'/>
<source path='shared'/>
<servlet path='/displayJFreeChart'
class='org.jfree.chart.servlet.DisplayChart'/>
</module>
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.