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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.