Hi,
Having troubles with Tabs when adding a MapWidget.
public void onModuleLoad() {
TabSet tabSet = new TabSet();
tabSet.setSize("300px", "300px");
Tab t1 = new Tab("Status");
Tab t2 = new Tab("Map");
MapWidget map = new MapWidget();
Canvas c2 = new Canvas();
c2.addChild(map);
t2.setPane(c2);
tabSet.setTabs(t1, t2);
RootPanel.get().add(tabSet);
}
This gives an error with GWT 1.7.1 when selecting the second tab.
ncaught JavaScript exception [java.lang.AssertionError: A widget that has an existing parent widget may not be added to the detach list
at com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose(RootPanel.java:122)
at com.google.gwt.user.client.ui.RootPanel.get(RootPanel.java:197)
at com.smartgwt.client.widgets.WidgetCanvas.onDraw(WidgetCanvas.java:39)
at com.smartgwt.client.widgets.BaseWidget.rendered(BaseWidget.java:205)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
Using latest official google maps gwt API and latest nightly build of SmartGWT.
Any input on this would be greatly appreciated.
Thank you.
-- Sven
Having troubles with Tabs when adding a MapWidget.
public void onModuleLoad() {
TabSet tabSet = new TabSet();
tabSet.setSize("300px", "300px");
Tab t1 = new Tab("Status");
Tab t2 = new Tab("Map");
MapWidget map = new MapWidget();
Canvas c2 = new Canvas();
c2.addChild(map);
t2.setPane(c2);
tabSet.setTabs(t1, t2);
RootPanel.get().add(tabSet);
}
This gives an error with GWT 1.7.1 when selecting the second tab.
ncaught JavaScript exception [java.lang.AssertionError: A widget that has an existing parent widget may not be added to the detach list
at com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose(RootPanel.java:122)
at com.google.gwt.user.client.ui.RootPanel.get(RootPanel.java:197)
at com.smartgwt.client.widgets.WidgetCanvas.onDraw(WidgetCanvas.java:39)
at com.smartgwt.client.widgets.BaseWidget.rendered(BaseWidget.java:205)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
Using latest official google maps gwt API and latest nightly build of SmartGWT.
Any input on this would be greatly appreciated.
Thank you.
-- Sven
Comment