• Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple component validator  RSS feed

 
Gina vernon
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have multiple components in the same form that use the same validator. The validator is triggered onblur. So, everytime I key in values in the components, all the validators loops through the logic for all the components that have values. How can I avoid this?
Thanks.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a JSF validator or a JavaScript validator?

JSF validation is done when an action is fired. It's one of the stages in the JSF lifecycle. "onblur" doesn't fire actions - unless you have attached some sort of AJAX functionality to the JavaScript onblur event.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!