This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Custom validator object not found  RSS feed

 
Fernando Dominguez
Ranch Hand
Posts: 108
Debian Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm writing this lines because I'm having problems trying to make a custom validator  work.

When I refer to the validator in the  line 


I get an error message saying that the expression employeeTitleValidor has not been found.

This is the code, everything is locate in the same package:



I'm using wildFly 10 and its libraries.

thanks in advance.
 
Chris Barrett
Bartender
Posts: 321
24
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would start by double checking the two references match. The validatorId value should match the value of the @FacesValidator annotation that registers the validator.

Take a close look at the code you posted, and you'll note that one is employeeTitleValidater and the other is employeeTitleValidate

Oh, and I would recommend you use the fully qualified name in order to eliminate any chance of ambiguity.
 
Fernando Dominguez
Ranch Hand
Posts: 108
Debian Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, There is a typo there but that is not the problem.

Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!