• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

autocomplete with h:inputText in jSF

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can i use autocomplete functionality with only JSF component h:inputText when i dont want to use rich ,primefaces or icefaces autocomplete tags?
with user entry i use valuechangeListener to get query entered and list set from db. the list is of SelectItem so that i can use f:selectItems as dropdown of autocomplete

Can anyone guide how can i get autocomplete functionality especialy showing dropdown using h:InputText or JSF component only??
 
Saloon Keeper
Posts: 24847
174
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You cannot do that. JSF's core tag library reflects the HTML form primitives and they don't have an autocomplete control.

The only way to get autocomplete functionality using core JSF is to write a lot of explicit client-side JavaScript code that used AJAX to update the completion list. But that's false economy, since the extension taglibraries that provide native autocomplete such as RichFaces and PrimeFaces are already doing exactly that, more transparently and (even more importantly) THEIR code is already debugged and functional.
 
reply
    Bookmark Topic Watch Topic
  • New Topic