What steps will reproduce the problem?
1. When I run the follow code,the problem occur.
// Container for widgets and connections
AbsolutePanel panel = new AbsolutePanel();
panel.setWidth("100%");
panel.setHeight("100%");
RootPanel.get().add(panel);
// elements to connect
Widget x = new Label("X");
Widget y = new Label("Y");
Widget z = new Label("Z");
panel.add(x, 100, 100);
panel.add(y, 200, 200);
panel.add(z, 300, 300);
// gwt-diagrams stuff
Connector c1 = UIObjectConnector.wrap(x);
Connector c2 = UIObjectConnector.wrap(y);
Connector c3 = UIObjectConnector.wrap(z);
Connection connection1 = new RectilinearTwoEndedConnection(c1, c2);
Connection connection2 = new BezierTwoEndedConnection(c2, c3);
Connection connection3 = new StraightTwoEndedConnection(c2, c3);
connection1.appendTo(panel);
connection2.appendTo(panel);
connection3.appendTo(panel);
What is the expected output? What do you see instead?
com.google.gwt.core.client.JavaScriptException: (TypeError):
canvas.getContext is not a function
fileName:
jar:file:/gwt1.5.3/diagrams/lib/gwt-diagrams-0.2-RC00.jar!/pl/balon/gwt/diagrams
/client/common/bezier/BezierCurveCanvas.java
lineNumber: 84
stack: ([object gwt_nativewrapper_class],[object
gwt_nativewrapper_class],[object gwt_nativewrapper_class],[object
gwt_nativewrapper_class],"rgb(0, 0,
0)")@jar:file:/gwt1.5.3/diagrams/lib/gwt-diagrams-0.2-RC00.jar!/pl/balon/gwt/dia
grams/client/common/bezier/BezierCurveCanvas.java:84
gwtOnLoad([object Window],"com.google.HelloGWT","1.5")@:0
gwtOnLoad((function () {alert("Failed to load module
com.google.HelloGWT\".\nPlease see the log in the development shell for
details.");}),"com.google.HelloGWT","http://localhost:8888/com.google.HelloGWT/"
)@http://localhost:8888/com.google.HelloGWT/hosted.html?com_google_HelloGWT:20
maybeStartModule()@http://localhost:8888/com.google.HelloGWT/com.google.HelloGWT
.nocache.js:100
()@http://localhost:8888/com.google.HelloGWT/com.google.HelloGWT.nocache.js:354
@http://localhost:8888/com.google.HelloGWT/hosted.html?com_google_HelloGWT:39
at
pl.balon.gwt.diagrams.client.common.bezier.BezierCurveCanvas.drawImpl(Native
Method)
at
pl.balon.gwt.diagrams.client.common.bezier.BezierCurveCanvas.draw(BezierCurveCan
vas.java:72)
at
pl.balon.gwt.diagrams.client.connection.BezierTwoEndedConnection.update(BezierTw
oEndedConnection.java:85)
at
pl.balon.gwt.diagrams.client.connection.AbstractConnection.update(AbstractConnec
tion.java:99)
at
pl.balon.gwt.diagrams.client.connection.AbstractConnection.onAttach(AbstractConn
ection.java:110)
at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:231)
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
pl.balon.gwt.diagrams.client.connection.AbstractConnection.appendTo(AbstractConn
ection.java:133)
at com.google.client.HelloGWT.onModuleLoad(HelloGWT.java:47)
What version of the product are you using? On what operating system?
gwt 1.5.0 ,linux ,eclpise 3.2,fire fox
Original issue reported on code.google.com by zhwulov...@gmail.com on 19 Dec 2008 at 10:25
Original issue reported on code.google.com by
zhwulov...@gmail.com
on 19 Dec 2008 at 10:25