Hello everyone,I'm having problems with my AutoCompleteTextField. I would like to have one of my domain objects bound to the AutoCompleteTextField's model but in the autocomplete dropdown list I would like to see only the name property of that domain object, not the whole toString() result.
I managed to get this working by using my own AbstractAutoCompleteRenderer but when I submit the form and make a
DomainObject do = autoCompleteTextField.getModelObject(); I get a ClassCastException: String cannot be cast to DomainObject. Is there any example of how to get this working, please? Thanks in advance.
PGP.sig
Description: Signierter Teil der Nachricht