Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

ajax4jsf and h:inputText

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!

Dave
 
Does this tiny ad smell okay to you?
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic