Friday, September 30, 2011

Re: GWT 2.4 CellTable issue

Here's a better example:

Running this code works fine in GWT 2.3 but throws the exception in
GWT 2.4

CellTable<String> table = new CellTable<String>();

table.addColumn(new TextColumn<String>() {
@Override
public String getValue(String object) {
return object;
}
}, "Col");

List<String> list = new ArrayList<String>();
list.add("abc");
list.add("def");
table.setRowData(list);

NodeList<Element> els =
table.getElement().getElementsByTagName("THEAD");
if (els.getLength() == 0) {
return;
}

final Element e = els.getItem(0);
e.removeFromParent();

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment