Thursday, June 2, 2011

SuggestBox not showing Suggestion

I have a view with a TextBox, In my presenter I populate the suggestion list with an RPC call and wrap TextBox in a SuggestionBox. The Suggestion box is not showing any suggestion.

Code goes like-->

citysuggest=new SuggestBox(cityoracle,display.getCityBox());    //wrapping in textbox+passing MultiWordSuggestOracle refrence

((Display) display.asWidget()).getVerticalPanel().insert(citysuggest,1);  //Inserting the SuggestBox in view

System.err.println(citysuggest.isSuggestionListShowing());   // This shows false 

What could be the issue? I have many widgets in my view. There seems no space unless the suggestionlist pops over other Labels and SuggestionBoxes. Can that be an issue? Whats the way out?

--
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/-/WW9JdFZ1Mk5STThK.
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