Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UserName Validation with Ajax

 
Mahendra Pratap
Ranch Hand
Posts: 42
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Shasi Mitra
Ranch Hand
Posts: 101
Flex Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic