Hey everyone,

 

I need a combobox, where a user types in part of the entry, and the
possible choices are looked up and presented for the user to select.  

The AutoCompleteTextField looks like it is close to what I want, but I
was hoping there is a way to have an object behind the component's
model, rather than simply a String.   

 

Let's say I have a Person table with ID,  name, and address...  I want
the user to type in part of the name and select a person, the field will
display name/address pairs so that the entries are unique, but when the
form submits, I really just want the ID so I don't have to parse the
textfield string and lookup the object.   Is there a way I can achieve
this using a custom Renderer / converter / behavior?

 

Is there a different component or extension that already does this?  Or
is there an easy way to achieve this with the AutoCompleteTextField?

 

Thanks for any help!

-Clay

Reply via email to