Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSR 303 Custom validation annotation is not firing  RSS feed

Glen Divers
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm just starting JEE6 with Glassfish and JSF, and I'm trying to create my first JSR-303 validation. The problem I've got is that despite the fact that everything compiles, the validator class is never called. I've listed the code below. (I know that the validator doesn't make logical sense at the moment, there's more to go in it, I'm just trying to get it to work at the moment.) Can anyone see what I'm doing wrong.


The annotation;

The validator;

and my backing bean (trimmed);

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