If you can, submit a patch.  I think most of the community would like that
functionality.

On 29/05/07, Dipu <[EMAIL PROTECTED]> wrote:

 I agree, it will be nice to have the ability control this.
In my case i had to hard code it in the autocomplete js file and i had to
rebuild the wicket extensions.

Regards
Dipu



----- Original Message -----
 *From:* Sean Sullivan <[EMAIL PROTECTED]>
*To:* wicket-user@lists.sourceforge.net
*Sent:* Saturday, May 26, 2007 6:57 AM
*Subject:* Re: [Wicket-user] Autocomplete - selecting (higlighting)
firstoption by default.


IMHO, it would be nice if Java programmers could control this behavior
with a Java API.



On 5/25/07, Dipu <[EMAIL PROTECTED]> wrote:
>
>
>
> At the moment with Wicket's auto complete list  we need to scroll down
> to select an option from the Autocomplete list.
> It would be nice to have the first item highlighted by default.
>
> I tried changing selected to 0 where its declared and it didn't work for
> me.
>
> On setting selected to 0 a doUpdateChoices(resp) worked,
>
> function doUpdateChoices(resp){
> var element = getAutocompleteMenu();
> element.innerHTML=resp;
> if(element.firstChild && element.firstChild.childNodes) {
> selected = 0;
>
> Can anyone please confirm if this is the right way to go.
>
> Regards
> Dipu
>
>

 ------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

------------------------------

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Ryan Gravener
fbb55c59d619f3cd68ac4f70ebeca372
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to