Use the Select and not a AutoComplete.


2010/6/8 Donarus <palu...@gmail.com>

>
> Hi,
>  this is example part of code of my autocomplete textfield (im using T
> 5.1.0.5)
>
> JAVA PART:
> List<String> onProvideCompletionsFromNaseptavacValue(String partial) {
>   List<String> matches = new ArrayList<String>();
>   matches.add("match1");
>   matches.add("match2");
>   matches.add("match3");
>   return matches;
> }
>
> TML PART:
> <form t:type="form" t:id="naseptavacForm" t:zone="vybranoZone">
>   <input t:id="naseptavacValue" t:type="TextField"
> t:mixins="lastautocomplete"/>
>   <input type="submit" value="odeslat" />
> </form>
>
> I need to make autocomplete textfield, but i need functionality, that when
> user activate blank textfield (eg. he click into textfield), suggestions
> will be showed (I dont want to wait for starting typing any text).
>
> I know, that there is t:minChars property (default = 1), but when i change
> it to 0, it does nothing. Is there aby possible easy way, how to solve
> this?(how to fire event for showing possible suggestions immediatelly when
> user clicks inside textfield)?
>
> Im sorry for my English.
>
> Donarus
>
>
> --
> View this message in context:
> http://old.nabble.com/How-to-enable-suggestions-when-entering-the-input-field-tp28819610p28819610.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Pablo Henrique dos Reis

Reply via email to