This examples I wrote a few months ago shows you how to implement a
sortable CellList. It should be easily adaptable for a CellTable.
> Also, could you make the source available in the maven repository? I learn a
> lot by reading widget code, so it'd be handy here.
If you are talking about the source code of the d-n-d plugin, you will
find it in the jar itself... GWT has to access the source code in
order to compile.
Julien
> --
> You received this message because you are subscribed to the Google Groups
> "gwtquery" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/gwtquery/-/yKcOiDLkbUwJ.
> To post to this group, send email to gwtq...@googlegroups.com.
> To unsubscribe from this group, send email to
> gwtquery+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/gwtquery?hl=en.
>
java.lang.IllegalStateException: This widget's parent does not implement HasWidgets
at com.google.gwt.user.client.ui.Widget.removeFromParent(Widget.java:199)
at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:88)
at com.google.gwt.user.client.ui.VerticalPanel.add(VerticalPanel.java:48)
If you instead do
DragAndDropCellTable t = ...
VerticalPanel p = new VerticalPanel();p.add(t);DroppableWidget dw = new DroppableWidget(t);...then the table renders.