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 Auto-completion form in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "Auto-completion form in JSF" Watch "Auto-completion form in JSF" New topic
Author

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
    
    6

http://myfaces.apache.org/sandbox/inputSuggest.html


GenRocket - Experts at Building Test Data
Chris Schalk
author
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.
-Chris
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
author
Ranch Hand

Joined: Sep 11, 2006
Posts: 82
    
    5
Hello,

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

https://jsf-extensions.dev.java.net/nonav/mvn/slides.html

and the homepage for the project is https://jsf-extensions.dev.java.net/. The homepage has links to live demo apps as well.

Sincerely,

Ed
 
GeeCON Prague 2014
 
subject: Auto-completion form in JSF