On 6 mai, 08:15, Yogi <yogesh....@gmail.com> wrote:
> I have a suggestbox with MultiWordSuggestOracle. I need to type in
> name which is firstName +" " +lastname and when user selects a item, i
> want the replaced text to be the id of the user. I am not sure how to
> implement this.
You can't; you have to use your own SuggestOracle (which can delegate
to an internal MultiWordSuggestOracle if you want; you could then wrap
each MultiWordSuggestion in your own Suggestion class which would map
back the "firstName lastName" --from the
MultiWordSuggestion::getReplacementText-- to the user id in your
getReplacementText method)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---