Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ajax4jsf and h:inputText

Davide Crudo
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I'm struggling with an issue with Ajax and JSF and i cannot figure it out... I've tried to find
anything on various sites...but no idea on this behaviour.

I would like to validate a user creation on the fly: if the user already exists, return an error.

I cmanaged to have it working with this code:

if, howewer, I change line 25 into the following:

the validation of the user (if exists) is not performed (no ajax call...)

As i'm new to ajax, I cannot figure out what the problem is.

What i'm trying to do is to perform two checks:

- If the user exists
- If the field is empty, return an error

any idea why adding required="true" will prevent the user background check?

Thank you in advance!

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic