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 UserName Validation with Ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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.>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UserName Validation with Ajax