aha! a simple solution. thanks.
Johan Compagner wrote: > > cant you add a key listener to the textfield and if you see an enter > you call button.onclick() your self? > > On 6/5/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: >> >> I've got an autocomplete text field nested inside a larger form. When >> you >> click "add" next to the field, it adds what you've completed to a list >> that >> is submitted when the overall form is submitted. Would like to figure >> out >> how to make pressing the return key in the field (when there is no >> completion dropdown stuff going on) act like pushing the add button >> (which >> is an AjaxSubmitButton). Any ideas on how to approach this in general? >> -- >> View this message in context: >> http://www.nabble.com/Want-return-key-to-click-button-in-autocomplete-behavior-tf3874367.html#a10977981 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> 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 > > -- View this message in context: http://www.nabble.com/Want-return-key-to-click-button-in-autocomplete-behavior-tf3874367.html#a10994346 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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