problem with TreeItems got from SelectionEvent on a Tree

14 views
Skip to first unread message

tanteanni

unread,
Jun 28, 2011, 8:30:24 AM6/28/11
to google-we...@googlegroups.com
a similar problem i had with suggest box. in general i need the selction widget to make difference between an items visible string and it's id (strings are ambiguous). for suggestion box i made my own MultiWordSuggestion and my own SuggestionOracle both work on a special DTO that is returned on SelectionEvent of SuggestBox. With this i can get the id like this ((MyDTO) selectionEvent.getSelectedItem() ).getId .

But how to achieve this with tree / treeItems (probably via items built with fancy html stuff)? My DTO is implementing IsTreeItem and building a tree with it is very easy, but it seems that id-name-pairing gets lost as soon the tree is built.
Reply all
Reply to author
Forward
0 new messages