I am currently working also on a project hosted on Google App Engine (http://appspot.com) and I want to share some tips about some of the frameworks offered by the GAE environment.
Today I want to talk about a problem we had using the GWT SuggestBox component while making UiBinder layouts. The class com.google.gwt.user.client.ui.SuggestBox is a text box or text area which displays a pre-configured set of selections that match the user's input. Each SuggestBox is associated with a single com.google.gwt.user.client.ui.SuggestOracle. The SuggestOracle is used to provide a set of selections given a specific query string. Our application provides a method to retrieve suggestions from the backend while a user writes into the SuggestBox. This worked fine with a GWT Java layout, but moving to UiBinder layout we faced the following problem. We added a SuggestBox to a view through the GWT designer. The code generated was the following:
View.ui.xml:
Today I want to talk about a problem we had using the GWT SuggestBox component while making UiBinder layouts. The class com.google.gwt.user.client.ui.SuggestBox is a text box or text area which displays a pre-configured set of selections that match the user's input. Each SuggestBox is associated with a single com.google.gwt.user.client.ui.SuggestOracle. The SuggestOracle is used to provide a set of selections given a specific query string. Our application provides a method to retrieve suggestions from the backend while a user writes into the SuggestBox. This worked fine with a GWT Java layout, but moving to UiBinder layout we faced the following problem. We added a SuggestBox to a view through the GWT designer. The code generated was the following:
View.ui.xml:
Thanks a lot.. spend a lot of time in rectifying the error...
ReplyDeleteIt will work only when we declare like -
@UiField(provided = true)
SuggestBox box = new SuggestBox(createOracle());