PDA

View Full Version : GXT 2 - TreePanel selection not working



andreea.spirea
28 May 2009, 5:25 AM
Hi all,

I have quite an issue with the TreePanel. I used to have a Tree, but when I replaced it with a TreePanel, selection on the leafs does not show up anymore.
What happens is the following: events are still fired, for instance i open a tab when clicking a node, but the selection itself (the item background turning blue) is not there.

Moreover, I get this exception from time to time:

[ERROR] Uncaught exception escaped
java.lang.NullPointerException: null
at com.extjs.gxt.ui.client.widget.treepanel.TreePanelView.getJointElement(TreePanelView.java:65)
at com.extjs.gxt.ui.client.widget.treepanel.TreePanelView.isSelectableTarget(TreePanelView.java:129)
at com.extjs.gxt.ui.client.widget.treepanel.TreePanelSelectionModel.onMouseDown(TreePanelSelectionModel.java:262)
at com.extjs.gxt.ui.client.widget.treepanel.TreePanelSelectionModel.handleEvent(TreePanelSelectionModel.java:87)
at com.extjs.gxt.ui.client.widget.treepanel.TreePanelSelectionModel.handleEvent(TreePanelSelectionModel.java:1)
at com.extjs.gxt.ui.client.event.BaseObservable.callListener(BaseObservable.java:181)
at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:98)
at com.extjs.gxt.ui.client.widget.Component.fireEvent(Component.java:457)
at com.extjs.gxt.ui.client.widget.Component.onBrowserEvent(Component.java:758)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1320)
at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1299)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1262)
at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126)
at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:235)
at com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:558)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

Thanks.