Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two validators

 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I was wondering someone can answer this question for me.

I have implement two backing bean validator methods, when I click the save button, only one get invoked. What can I do make both run?

in xhtml like


thanks
Davie
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18163
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put valid data in the input controls.

Seriously, when a form is submitted, ALL the validators get invoked. That's how JSF is able to display separate messages for each invalid input.

Of course, you seem to have defined inputs that have no place to input to (no 'value=' attributes). which is an entirely different problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic