• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Autocomplete in h:inputText

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"jsf rookie",
Please check your private messages regarding an important administrative matter.
-Ben
 
You get good luck from rubbing the belly of a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic