File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Live search Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Live search" Watch "Live search" New topic
Author

Live search

Johan Rignas
Ranch Hand

Joined: Jul 17, 2011
Posts: 30
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

Joined: Aug 26, 2010
Posts: 41

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


Harsh Jetly
Johan Rignas
Ranch Hand

Joined: Jul 17, 2011
Posts: 30
Feels very workload heavy to retrive the whole table. But I guess its the way to go.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Live search