# HG changeset patch # User arussell # Date 1432226213 0 # Node ID 7f18b34ec7ec4bb1d8e869b66343ee44da81a7ec # Parent 86a9bb2346634f07be132827a274d8c2011e6276 Fixed: Issue with image server search functionality Previously: - had to use tab or other weird combinations of tricks to get around the image server search. Fixed: - enter key now selects suggestion from search list and pressing a second time will send the search request. - 'selectFirst' property changed so that the user is able to search for their unique input and is not restricted to only the suggestion list. [Eg: searching simply 'Glaser' to get all related results] To-Do: *Possibly change so that pressing enter both selects the suggestion from the autocomplete list and searches the selection in one fluid command, rather than having to hit enter twice* Signed-off-by: Alistair-Russell diff -r 86a9bb234663 -r 7f18b34ec7ec src/main/webapp/imageServer/displayDigiList.xhtml --- a/src/main/webapp/imageServer/displayDigiList.xhtml Thu May 21 10:36:37 2015 +0000 +++ b/src/main/webapp/imageServer/displayDigiList.xhtml Thu May 21 16:36:53 2015 +0000 @@ -51,19 +51,31 @@ +
+ var="suggestion" fetchValue="#{suggestion}" layout="div" selectFirst="false" + value="#{Session.digiList.filterTerm}" onkeypress="return handlerKeyPress(event);" > #{suggestion} - +
- + - +