wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 15299


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 https://jsf-extensions.dev.java.net/. The homepage has links to live demo apps as well.


I agree. Here's the link: http://aspose.com/file-tools
subject: Auto-completion form in JSF
Similar Threads
Setting form action
Problem with welcome-file-list
State of tool support
Automated Ant