Hello!

I think you may find there is a useful example of something *similar* here:
http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/autocompletemixin

However, if it is that exact functionality as you see in the jqueryui
page you linked to, perhaps you can simply use that exact one - The
source is available on the site.

If you add the css and script to your page. See:
http://tapestry.apache.org/javascript.html

Then all you need to be able to produce yourself is the actual list.
>From the example, it looks like this:

====
<div class="ui-widget">
  <label>Your preferred programming language: </label>
  <select id="combobox">
    <option value="">Select one...</option>
    <option value="ActionScript">ActionScript</option>
    <option value="AppleScript">AppleScript</option>
    <option value="Asp">Asp</option>
    <option value="BASIC">BASIC</option>
    <option value="C">C</option>
    <option value="C++">C++</option>
    <option value="Clojure">Clojure</option>
    <option value="COBOL">COBOL</option>
    <option value="ColdFusion">ColdFusion</option>
    <option value="Erlang">Erlang</option>
    <option value="Fortran">Fortran</option>
    <option value="Groovy">Groovy</option>
    <option value="Haskell">Haskell</option>
    <option value="Java">Java</option>
    <option value="JavaScript">JavaScript</option>
    <option value="Lisp">Lisp</option>
    <option value="Perl">Perl</option>
    <option value="PHP">PHP</option>
    <option value="Python">Python</option>
    <option value="Ruby">Ruby</option>
    <option value="Scala">Scala</option>
    <option value="Scheme">Scheme</option>
  </select>
</div>
<button id="toggle">Show underlying select</button>
====

That could be either hard coded into the template (depending on what
it is), or you could retrieve it from your java class as an ArrayList
of strings and have a loop in your .tml file to output it.
See: 
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Loop.html


If you get stuck with this, please let me know what you have tried and
i'll try to help more. I'm a bit of a tapestry noob also (only been
using it maybe 4 months), but I implemented something similar with a
particular jquery script I wanted for displaying data and it worked
fine.

Thanks,
Steve

On 23 October 2013 15:04, Vasili Petrenko <vasili.petre...@devintime.de> wrote:
> I'm new to Tapestry. I want to change the behavior in autocomplete.
>
> I want to display a selection list when i'm click on the input field.
>
> How do I set up the click event to show the list.
>
>
>
> Something like this.
>
> http://jqueryui.com/autocomplete/#combobox
>
> It can also be as a pure input field. Does not look like SelectBox.
>
>
>

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

Reply via email to