I am working with Suggestion box in gwt, I have applied a selectionHandler on that suggestion box. If I select "abc" value then getSelectedItem().getDisplaySring() should return "abc" instead it returns
<strong>a</strong>bc.
Can someone help in this situation.. Why it returns wrong result.?
view.getMySuggetsionBox().addSelectionHandler(new SelectionHandler<SuggestOracle.Suggestion>() {
@Override
public void onSelection(SelectionEvent<Suggestion> event) {
Window.alert(event.getSelectedItem().getDisplayString());
}
});
I suppose you're just actually looking for
getReplacementStringrather thangetDisplayString.Keep in mind that a suggest box is a text box with suggestions, not a select box / combo box with typeahead.