Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ajax4jsf and h:inputText  RSS feed

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!

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!