• Post Reply Bookmark Topic Watch Topic
  • New Topic

Autocomplete in h:inputText

 
jsf rookie
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I have an input text used to get the search criteria, and the requirment is to have autocomplete enabled for this text box, i tried using javascript for autocomplete but still this doesnt work. can anyone help me with this issues please.Thanks.

Regards,
jr
 
Alexander Bell
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

you can solve this problem by using Ajax.

For instance you can use the Ajax-JSF-Solutino from J4Fry.
http://www.j4fry.org/jsfAjax.shtml

On every onKeyDown-event you initiate an ajax-request. You have got an select-List with many Items that are updated by the ajax-util. With the attributes "preJSFunction" and "postJSFunction" you can show and hide the select-box.

But there are any other components which have auto-suggestions e.g. ice-faces.

mfg alex
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"jsf rookie",
Please check your private messages regarding an important administrative matter.
-Ben
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!