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.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aDUYWFZ-N6oJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment