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]

Reply via email to