Re: T5: Autocompleter - use for multiple selections in 1 single textfield

2009-10-09 Thread Fermin Da Costa Gomez
Can someone tell me if it is indeed correct that the removal of already
available data in the input field is done on the client when an autocomplete
entry is selected?
If this is correct, would there be an elegant way to 'break into' the js
code to modify this behaviour?

If however, this is not the case where can i 'capture' the old value once
the selection in made so that i don't actually lose it on commit.

Tia

On Fri, Oct 9, 2009 at 5:44 PM, Fermin Da Costa Gomez <
dacostago...@dcgconsultancy.nl> wrote:

> Em Fri, 09 Oct 2009 12:16:05 -0300, Fermin Da Costa Gomez <
>> dacostago...@dcgconsultancy.nl> escreveu:
>>
>>  I can indeed see a different behaviour and the fact that i omitted 1
>>> small but significant fact.
>>> Space would also be a separator for normal terms or k:v pairs. And for
>>> some reason i can't see t:tokens=" :" work, or does it?
>>>
>>
>> I don't know. Try putting a breakpoing in the Autocomplete sources to see
>> what's the value of the tokens field.
>
> I think i'll have to because using the ":' makes me lose the fieldname
> before the :. Which is probably according to the spec but not for me ..
>
> I have to use a space and that throws back an empty error at me without the
> ' '. And, using the ' ' brings me back to the original issue again.
> Will 'report back'.
>
>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> “The reasonable man adapts himself to the world; the unreasonable one
> persists in trying to adapt the world to himself. Therefore all progress
> depends on the unreasonable man.”
> - George Bernard Shaw (1856 - 1950)
>



-- 
“The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all progress
depends on the unreasonable man.”
- George Bernard Shaw (1856 - 1950)


Re: T5: Autocompleter - use for multiple selections in 1 single textfield

2009-10-09 Thread Fermin Da Costa Gomez
>
> Em Fri, 09 Oct 2009 12:16:05 -0300, Fermin Da Costa Gomez <
> dacostago...@dcgconsultancy.nl> escreveu:
>
>  I can indeed see a different behaviour and the fact that i omitted 1 small
>> but significant fact.
>> Space would also be a separator for normal terms or k:v pairs. And for
>> some reason i can't see t:tokens=" :" work, or does it?
>>
>
> I don't know. Try putting a breakpoing in the Autocomplete sources to see
> what's the value of the tokens field.

I think i'll have to because using the ":' makes me lose the fieldname
before the :. Which is probably according to the spec but not for me ..

I have to use a space and that throws back an empty error at me without the
' '. And, using the ' ' brings me back to the original issue again.
Will 'report back'.


>
>
> --
> 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
>
>


-- 
“The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all progress
depends on the unreasonable man.”
- George Bernard Shaw (1856 - 1950)


Re: T5: Autocompleter - use for multiple selections in 1 single textfield

2009-10-09 Thread Thiago H. de Paula Figueiredo
Em Fri, 09 Oct 2009 12:16:05 -0300, Fermin Da Costa Gomez  
 escreveu:


I can indeed see a different behaviour and the fact that i omitted 1  
small but significant fact.
Space would also be a separator for normal terms or k:v pairs. And for  
some reason i can't see t:tokens=" :" work, or does it?


I don't know. Try putting a breakpoing in the Autocomplete sources to see  
what's the value of the tokens field.


--
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: T5: Autocompleter - use for multiple selections in 1 single textfield

2009-10-09 Thread Fermin Da Costa Gomez
>
> Em Fri, 09 Oct 2009 11:58:11 -0300, Fermin Da Costa Gomez <
> dacostago...@gmail.com> escreveu:
>
>> I'v tried t:tokens="':'" and t:tokens="' '" but that does not do the
>> trick.
>>
>
> Try t:tokens=":". You're using Java literal character syntax in something
> that receives a literal String.
>
I can indeed see a different behaviour and the fact that i omitted 1 small
but significant fact.
Space would also be a separator for normal terms or k:v pairs. And for some
reason i can't see t:tokens=" :" work, or does it?



>
> --
> 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
>
>


-- 
“The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all progress
depends on the unreasonable man.”
- George Bernard Shaw (1856 - 1950)


Re: T5: Autocompleter - use for multiple selections in 1 single textfield

2009-10-09 Thread Thiago H. de Paula Figueiredo
Em Fri, 09 Oct 2009 11:58:11 -0300, Fermin Da Costa Gomez  
 escreveu:
I'v tried t:tokens="':'" and t:tokens="' '" but that does not do the  
trick.


Try t:tokens=":". You're using Java literal character syntax in something  
that receives a literal String.


--
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



T5: Autocompleter - use for multiple selections in 1 single textfield

2009-10-09 Thread Fermin Da Costa Gomez
Hi,

I am trying to use the autocompleter in a text inputfield to not select
multiple values.
It concerns a searchline (like google) where the 1st selection works
perfectly.
Then after the field is selected (like *fieldname:* ) one can continue by
supplying the value.
This also works, i get to see the values available to the particular field.

Problem: when i select a certain value in the autocompletion list all the
other info gets replaced by the value that was selected last.
So instead of *fieldname:value* i get just *value*
Obviously i'm looking for the value to be appended to the fieldname not for
the value to remove the fieldname.

I'v tried t:tokens="':'" and t:tokens="' '" but that does not do the trick.

I'm sure i'm overlooking something but i haven't found it yet.

Any suggestion(s) would be appreciated.

Tia,

Fermin DCG