how to change method add(String) in MultiWordSuggestOracle to
add(htmlString)
in this code:
# MultiWordSuggestOracle oracleSurveys = new
MultiWordSuggestOracle();
# DashboardService.App.get().getSurveyAndFolder(new
AsyncCallback<List<DashboardObject>>() {
# public void onFailure(Throwable throwable) {
# Window.alert("Error in getting surveys' name and
folder's name , see log");
# }
#
# public void onSuccess(List<DashboardObject>
dashboardObjects) {
# for (DashboardObject dashboardObject :
dashboardObjects) {
#
oracleSurveys.add(dashboardObject.getAllSurveyName() + " [" +
dashboardObject.getSurveyFolderName() +
"]"+dashboardObject.getAllSurveyID());
# }
# }
# });
#
# surveySearch.addSelectionHandler(new
SelectionHandler<SuggestOracle.Suggestion>() {
# public void
onSelection(SelectionEvent<SuggestOracle.Suggestion>
suggestionSelectionEvent) {
# Window.alert("ID
is"+suggestionSelectionEvent.getSelectedItem().getDisplayString().split("\
\]")[1]);
# }
# });
user shouldn't see "dashboardObject.getAllSurveyID() 's value ". If
add() method is get HTML as parameter I'll use
<div style="display:none"> dashboardObject.getAllSurveyID()</div>
after that i can get id from addSelectionHandler for selected item
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.