Ok, I just found this issue in MultiWordSuggestOracle
I have a SuggestBox and a Button, each time i click the button the system will download 10 records from DB and add them into MultiWordSuggestOracle.
The 1st time, 2nd time and 3rd time i click on the button the SuggestBox showed data ok. However, when I clicked the 4th time, the SuggestBox did not show the latest texts (data from downloading the 4th time). This could be the old data still there & the new data was added into but hidden in MultiWordSuggestOracle.
So, my question is:
Is there any way we can force MultiWordSuggestOracle to show the latest data & put it on top the Suggested List?
Ex: After 1st, 2nd & 3rd time of downloading data, it showed like this:
text1 text2 ... text30
So I want when user got data at 4th time it should show the latest result on top like this:
text31 text32 ... text1 text2 ... text30
so I tried this code but nothing happened:
List<String> suggestedWordsList=getData();// data from DB Collection<String> suggestedWordsCollection=(Collection<String>)suggestedWordsList; myMultiWordSuggestOracle.setDefaultSuggestionsFromText(suggestedWordsCollection); myMultiWordSuggestOracle.showSuggestionList(); You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment