Svetlin Nakov
Author of the GWT Advanced Table project: http://code.google.com/p/gwt-advanced-table/
The solution for me was:
1) Follow Elliot.Wolk post on GWT forum:
I am reporting an incompatibility problem with gwt-tk 0.2.3 using GWT
1.4RC2. ComplexPanel.insert now disallows null for the container;
ModalDialog fails because ExposedCellPanel does the following:
/*
* Pass null and append the element manually so that
we can specify
* insertion order. Also note that the order of the
"children"
* WidgetCollection is not maintained.
*/
insert(w, null, getChildren().size());
Element td = getCellElement(cellIndex);
DOM.insertChild(td, w.getElement(), wIndex);
I replaced those three lines with this, and it works fine:
insert(w, getCellElement(cellIndex), getChildren().size(),false);
2) Erased GWT-tk binarys and recompiled them with GWT 1.4.60
Regards,
Freller
1. Edit global.properties and change the following line to point to
your GWT install e.g.
gwt.lib.location=/Develop/Developer/gwt-mac-1.4.60
2. Run ant e.g.
ant -Dproject.dir=/Develop/Developer/gwt-tk-0.2.3a/GWT\ Tk jarGwtTk
Note: I'm running on a mac, so I have to escape (via a backslash) the
space in the "GWT Tk" directory name
I made the modifications suggested above, but then I get another
exception (see below) and the dialog does not come up.
Any ideas?
[ERROR] Uncaught exception escaped
java.lang.IllegalArgumentException: null
at
asquare.gwt.tk.client.ui.behavior.FocusModel.setFocusWidget(FocusModel.java:
272)
at asquare.gwt.tk.client.ui.AlertDialog.addButton(AlertDialog.java:
442)
at asquare.gwt.tk.client.ui.AlertDialog.addButton(AlertDialog.java:
400)
at
asquare.gwt.tk.client.ui.AlertDialog.createWarning(AlertDialog.java:
158)
at com.cassatt.skynet.ui.client.basewidgets.BaseWidgets
$1.onClick(BaseWidgets.java:94)
at
com.google.gwt.user.client.ui.ClickListenerCollection.fireClick(ClickListenerCollection.java:
36)
at
com.google.gwt.user.client.ui.FocusWidget.onBrowserEvent(FocusWidget.java:
98)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1265)
at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:
1244)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1211)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
I made the modifications suggested above. It compiles fine, but my
modal implementations (Dialogs, etc) doesn't work.
Suggestions?