Hi, Thanks for reply. I meant right now, there is an onChange event behavior attached to the autocomplete, which allows me to type in the text box and the list of possible matched choices appear; but what i also want is that when i press enter on the text box, it should give me list of choices (taking in some input search string).
Is that possible without adding any additional java script ? Rick On Wed, May 14, 2008 at 12:40 PM, richardwilko < [EMAIL PROTECTED]> wrote: > > Hi, > > We have changed our auto complete so that when you press enter on one of > the > choices in the drop down we submit the form (default is to just populate > the > box), is this what you mean? unfortunatly to do this you need to hack the > wicket-autocomplete.js at the point where the enter key is pressed and ad > some manual javascript to do what you want. > > Richard > > > > > Ricky-22 wrote: > > > > Hi, > > > > I am trying to add a behavior to my autoComplete text field, where if i > > press enter, it should be able to run a default search (with some text > > input) and display a list of possible choices); > > > > is it possible with autoComplete.add(new AjaxBehavior() { > > @Override > > public void onEvent() { } > > } ); > > > > or some other additional component ? > > > > Any help would be appreciable. > > Rick > > > > > > -- > View this message in context: > http://www.nabble.com/AutoComplete-%22enter%22-key-behavior-tp17234468p17235509.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Regards Vyas, Anirudh || ॐ ||