Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Live search

 
Johan Rignas
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. How should I do a database search similar to the one Facebook have where: for each key press show alternatives of results?
Should I maybe retrive all data from the database and store this in a modelBean? Or should I do new query requests for every key press? Dont understand how to do becouse the load feels to be huge....
Is there maybe any library that can help me?
 
H Jetly
Ranch Hand
Posts: 41
Google Web Toolkit Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this link it should throw some light. I guess you load all the values in list in the bean first

Combo Box with dynamic suggestions list
http://livedemo.exadel.com/richfaces-demo/richfaces/comboBox.jsf;jsessionid=3839ABB965807312E31F540FD88D94AF?c=comboBox&tab=usage
 
Johan Rignas
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Feels very workload heavy to retrive the whole table. But I guess its the way to go.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic