سؤال

I am using struts2 dojo tag "autocompleter" for search results suggestions as Google in my web application. It's working fine, but, i can't change the selection up and down in the shown suggestions using keyboard arrow keys (like Google). It only works for mouse hover, not for keyboard arrow keys. How to achieve that?

Code :

<sx:autocompleter cssClass="search_query" id="search_query_top" name="searchQuery" list="suggestions" href="/list/GenerateList.action"
                          loadOnTextChange="true" searchType="substring" showDownArrow="false"  autoComplete="false" loadMinimumCount="1" resultsLimit="5" />
هل كانت مفيدة؟

المحلول

The Dojo tags are deprecated, as already said by RomanC

The alternate is to implement any autocompleter by yourself or you can use the Struts2 Jquery Plugin's autocomplete tag.

It's pretty straightforward, but you can try and let us know if any issues.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top