Hi,
onClick of the SuggestBox i want to display some of the default suggestions. Some how i am managing to get response from the server.
@Override
public void onClick(ClickEvent event) {
-
-
-
-
// here some how i am managing to get the default suggestions from the server.
-
-
-
-
// but my problem is how do i say callback.onSuggestionsReady(req, resp); because callback is not available here ?
// So, my work around was: i just created a new Callback, and after getting the response from the server i am calling
// callback.onSuggestionsReady(req, resp);
Callback callback = new Callback() {
@Override
public void onSuggestionsReady(Request request, com.google.gwt.user.client.ui.SuggestOracle.Response response) {
// my question is, how do i Override onSuggestionsReady and display the suggestions ?? because control is coming here.
}
};
}
is this is the right way ? or please can any one suggest me the right way ?
Thanks in advance :)
--
Santosh Kumar K
--
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+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