The autocomplete mixin is based on Scriptaculous's autocompleter.

See if this helps:
http://blog.ilexius.de/blog-post/2010/02/05/activate-autocompleter-in-scriptaculous-when-entering-a-field-on-focus/

Josh

On Tue, Jun 8, 2010 at 8:39 AM, Donarus <palu...@gmail.com> wrote:
>
> 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
>
>



-- 
--
http://www.bodylabgym.com - a private, by appointment only, one-on-one
health and fitness facility.
--
http://www.ectransition.com - Quality Electronic Cigarettes at a
reasonable price!
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

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

Reply via email to