Hi Clay,
Just pass a renderer to the AutoCompleteTextField. An implementation of
StringAutoCompleteRenderer (in wicket-extensions) would be most suitable
I think.
Regards,
Erik.
Clay Lehman wrote:
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
--
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]