Re: autocomplete, display more info

2009-01-25 Thread Thiago H. de Paula Figueiredo
Em Sun, 25 Jan 2009 11:00:06 -0300, Piero Sartini   
escreveu:



I am facing this problem as well - is there any solution?
(what I want to do is to return a Map in my onProvideCompletionFromField
event. The key gets submitted by the form, the value is presented to the  
user)


This is a common needed fuctionality, I guess. So we need something like  
an AutocompleteObject mixin that returns a SelectModel (just as Select's  
model parameter). Has anyone implemented this? This could be a very nice  
addition to the Tapestry component collection. ;)


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: autocomplete, display more info

2009-01-25 Thread Piero Sartini
I am facing this problem as well - is there any solution?

(what I want to do is to return a Map in my onProvideCompletionFromField 
event. The key gets submitted by the form, the value is presented to the user)

Piero

Am Montag 29 Dezember 2008 17:33:45 schrieb Joachim Van der Auwera:
> In the autocomplete mixin, the full string which is returned is always
> returned as value.
>
> Is there a way to make a distinction between the value which should be
> selected and the information which is displayed?
>
> In the original library, you can contain additional information in a
> "span" tag, allowing styling and assuring the additional info not set
> when selecting the value. When I try inserting this in the string, the
> tags are just added as literal strings.
>
> Is it possible to return a Bloock which contains a "" and all the
> styling or is there another way to handle this?
>
> Thanks for the help,
> Joachim


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org