PickTreeItem and getDisplayValue

I have a SmartGwt PickTreeItem with a ChangedHandler. The PickTreeItem itself works well, in my case it’s connected to a JSON datasource.
But calling getValue and getDisplayValue on the PickTreeItem in onChanged both return the same result, the id of the current entry. I would have expected that getDisplayValue returns the currently displayed value instead.

I rechecked this against a SmartClient PickTreeItem where the getDisplayValue worked as expected and returned the currently displayed text string.

Version is smartgwt-1.1.

Any ideas?

Should I add a test case which shows this behaviour?

Hi,

Anyone has any input on this issue? It seems to me that the only way to get the correct display value is from getSelectedNode(). Unfortunately, this method is not accessible through PickTreeItem.java.

It’s a known bug, and being tracked. If getSelectedNode() works for you, call it via JSNI.