PDA

View Full Version : Gwt 1.7 Cannot get Ext GWT 2.1.0 Basic Tree Treepanel example to show in Firefox only



aconn7
11 Jan 2010, 4:22 PM
Works fine in Hosted, Chrome and IE8. The tree does NOT display at all in Firefox:



public class BasicTreePanelExample extends LayoutContainer {

@Override
protected void onRender(Element parent, int pos) {
super.onRender(parent, pos);

Folder model = TestData.getTreeModel();

TreeStore<ModelData> store = new TreeStore<ModelData>();
store.add(model.getChildren(), true);

final TreePanel<ModelData> tree = new TreePanel<ModelData>(store);
tree.setWidth(300);
tree.setDisplayProperty("name");
tree.getStyle().setLeafIcon(Resources.ICONS.music());

ButtonBar buttonBar = new ButtonBar();

buttonBar.add(new Button("Expand All", new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
tree.expandAll();
}
}));
buttonBar.add(new Button("Collapse All", new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
tree.collapseAll();
}
}));

add(buttonBar, new FlowData(10));
add(tree, new FlowData(10));
}
}
I am curious however how the online GWT 2.1.0 Explorer works ok ...

aconn7
12 Jan 2010, 8:38 AM
After upgrading to GWT 2.0, the Ext GWT 2.1.0 Basic Tree Treepanel example no longer displays in Chrome. Now only displays in IE8

aconn7
13 Jan 2010, 6:33 AM
My bad. I had been updating my projects with the new gxt.jar but neglected to update the resources. All works fine now :D