This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes UserName Validation with Ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "UserName Validation with Ajax" Watch "UserName Validation with Ajax" New topic
Author

UserName Validation with Ajax

Mahendra Pratap
Ranch Hand

Joined: Feb 25, 2008
Posts: 42

Hi I just want to cheack whether the username entered by user while logging in exists or not, as soon as he moves from username textfield to password field.. I am struggling for this from past 2 day can anyone please suggenst me any productive solution..

i dont even know how to write the server side script code from that ajax code and how to send response with jsf.. so please help me guys.. I am new to this JSF and started learning it 2 days back only..I googled a lot but still didnt get..

Thanks in advance!!

Mahendra


Mahendra
http://randomtechieblog.blogspot.com
Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

Use ajax4jsf. Let the onChange event of the text box call <a4j:jsFunction where you can call actionListener. In the action listener method you can check for the validation.>
 
 
subject: UserName Validation with Ajax
 
Similar Threads
Migrating Application - From Struts with AJAX to JSF with AJAX
Best Books for learning ajax step by step for jsf
add children to panel
Ajax4JSF - Can't generate ajax call from JSF page
How to use Ajax in JSF