The Autocomplete calls toString on each of the objects that you
return, and that is the value that is set into your input box.

You can check out the source for the component it's pretty short.
http://tapestry.apache.org/tapestry5/apidocs/src-html/org/apache/tapestry/corelib/mixins/Autocomplete.html

If you want more complex data to be displayed then you can extend the
class and implement the generateResponseMarkup method. As of 5.0.11
extending the client side behavior when the user chooses a value is
not possible, as far as I could find.


Josh

On Tue, May 20, 2008 at 4:06 PM, Manuel Corrales
<[EMAIL PROTECTED]> wrote:
> Hi, i have s doubt about autocomplete component. According to the
> documentation, you can return a list of any objects on the
> onProvideCompletions, my question is, when i choose a value, this value is
> going to be the object from that list? or just a string and i have to make a
> match beetwen the string and the real object?
>
> Thanks very much!
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to