Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple component validator

 
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: 18423
60
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.
 
Skool. Stay in. Smartness. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!