• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Auto-completion form in JSF

 
Joy Mookerji
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
 
Chris Schalk
author
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 82
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic