This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JSF and the fly likes Auto-completion form in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Auto-completion form in JSF" Watch "Auto-completion form in JSF" New topic

Auto-completion form in JSF

Joy Mookerji
Ranch Hand

Joined: Jul 26, 2006
Posts: 49
Do JSF support Auto-completion form or we need to use AJAX call from Javascript to support this functionality
Does the book cover this feature if JSF supports this ?

SCJP 5<br />Brainbench Certified in C++<br />PMP<br />Dallas,TX
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

GenRocket - Experts at Building Test Data
Chris Schalk
Ranch Hand

Joined: Aug 31, 2006
Posts: 62
As was correctly pointed out, MyFaces a component for this.. But the book also explains how you could build custom components like this using AJAX.

In Chap 11 we show some simple AJAX JSF examples - the first one being a directory lookup where upon typing into an input field, a returned set of matches is sent back to the screen - all without having to do a post and page refresh.

Ed also provided a cool AJAX spellchecker example.
Joy Mookerji
Ranch Hand

Joined: Jul 26, 2006
Posts: 49
Thanks Greg and Chris
I am looking forward to get a copy of the book if I dont win
We have some upcoming requirements in my project where I need to implement these features and was looking for a place to start investigating.........
Ed Burns
Ranch Hand

Joined: Sep 11, 2006
Posts: 82

Yes, the book does have information on how to do an autocomplete example, and yes there are components that do it. But there is also a new open source project called DynaFaces that makes this sort of thing really easy.

You can see screencasts at

and the homepage for the project is The homepage has links to live demo apps as well.


I agree. Here's the link:
subject: Auto-completion form in JSF
It's not a secret anymore!