After selecting an item in the combobox I get a ValueChangedEvent. In this event the combobox should be cleared to be ready for the next input. How do I clear the box?
When the user enters a new text which is not represented in the item list and presses the enter key, then the value should be received by the server and the combobox should be cleared. I have registered a callback
combo.getElement().addEventListener("keyup", e -> {
}).addEventData("element.value").setFilter("event.keyCode == 13");
Is the getDetail() method deprecated or is there something that I am missing? I cannot call it. Maximum I can use the toString(), but that doesn’t do the trick for me as it returns a long string that is not readable for the end user. Does anybody know how to get around this?