Closed GoogleCodeExporter closed 9 years ago
Try running the application in web mode, not hosted. We've run into the same
problem
trying a proof-of-concept and it seems that the version of Mozilla that GWT
runs the
hosted browser in doesn't have native support for <canvas>.
https://developer.mozilla.org/en/drawing_graphics_with_canvas
http://markmail.org/message/ygra3ix2hlmu5smd
As a long term solution, the GWT team is moving to Out Of Process Hosted Mode
(Oomph)
http://code.google.com/p/google-web-toolkit/wiki/DesignOOPHM
So this might be a broken thing for a while.
Original comment by wals...@gmail.com
on 14 Jul 2009 at 8:05
Yes, <canvas> support is an issue if you are using the Linux version of GWT. If
you are developing on Linux
you can temporarily skip the creation of the chart in hosted mode by wrapping
your code with
if(GWT.isScript() ){
//create your chart here
}
This hack will allow you to start your application in hosted mode and the click
the "Compile/Browse" button to
see the chart in Firefox.
Alex
Original comment by alexjdl
on 14 Jul 2009 at 8:26
Hi,
I also have issues using gflot with ext (gwt-ext).
I tried in web mode, and it still didn't work.
* Web mode:
I tried on Firefox 3.0.14, IE 8 and Chrome 3. I get this exception:
Invalid dimensions for plot, width = 0, height = 0
* Hosted mode:
[ERROR] Unable to load module entry point class org.oda.client.MainEntryPoint
(see
associated exception for details)
java.lang.AssertionError: An javascript error occurrerd while creating plot.
at ca.nanometrics.gflot.client.SimplePlot.onLoad(SimplePlot.java:184)
at com.google.gwt.user.client.ui.Widget.onAttach(Widget.java:264)
at com.google.gwt.user.client.ui.Panel.doAttachChildren(Panel.java:165)
at com.google.gwt.user.client.ui.Widget.onAttach(Widget.java:259)
at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:393)
at com.google.gwt.user.client.ui.Panel.adopt(Panel.java:119)
at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:86)
at com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:80)
at com.gwtext.client.widgets.Component.render(Native Method)
at com.gwtext.client.widgets.Component.getElement(Component.java:427)
at com.gwtext.client.widgets.Component.getElement(Component.java:405)
at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:83)
at com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:80)
at org.blabla.client.MainEntryPoint.onModuleLoad(MainEntryPoint.java:26)
* Here's the code I use:
public class MainEntryPoint implements EntryPoint {
public MainEntryPoint() {
}
public void onModuleLoad() {
com.gwtext.client.widgets.Panel panel = new com.gwtext.client.widgets.Panel();
panel.setSize(800, 600);
panel.add(BarChartExample().createExample());
RootPanel.get().add(panel);
}
}
Original comment by lve...@gmail.com
on 17 Sep 2009 at 4:19
[deleted comment]
Original comment by nmr.morel
on 19 Jan 2013 at 4:55
Original issue reported on code.google.com by
stefan.m...@gmail.com
on 21 Apr 2009 at 6:42